~/talk

Secrets of Proxy Performance in Rust and async/await Without a Runtime

TalkinRussianat RustCon 2024 · on Friday, 2024-12-06· [rust, networking]
links:none on file
slides:none on file

Covers building high-performance reverse proxies in Rust for a bot-attacked large company, starting from an implementation using hyper and then moving to a custom proxy built directly on syscalls. Explains how to implement async/await without using Tokio or another runtime, discusses benefits and shortcomings of Rust and of standard vs bespoke designs, and presents benchmark comparisons.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Proxy scale requirements
  3. 4:17Two proxy implementations
  4. 5:43Benchmarking challenges
  5. 9:01Development deployment hurdles
  6. 12:45Building proxy from scratch
  7. 13:30Async/await benefits in Rust
  8. 16:40Event loop task management
  9. 18:49Custom futures for sockets
  10. 22:02Ring buffer optimization
  11. 23:51Performance results
  12. 25:02Future plans trade-offs
  13. 25:46Alternative libraries tools
  14. 27:12Optimization strategies
  15. 28:18Q&A: Buffer handling flow control
  16. 30:10Q&A: Scalability concurrency
  17. 31:14Q&A: TLS performance impact
  18. 32:46Q&A: eBPF DPDK considerations
  19. 34:13Q&A: Single-threaded libraries
  20. 35:44Q&A: Memory allocation Box<dyn>
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.