~/talk

Building a 6 million request per second web server

Talkat DDD Perth 2021 · on Saturday, 2021-08-14· [web-performance, serverless]
links:none on file
slides:none on file

A Java web server (OfficeFloor) hits ~6 million requests per second on TechEmpower benchmarks as a single process using standard non-blocking sockets. It uses one thread per CPU with thread affinity, turns off Nagle and implements its own coalescing, trims database pools to few connections, avoids locks in hot paths in favor of atomics, and applies byte-level bit‑twiddling for HTTP parsing. The result is much higher throughput by reducing cache misses, thread setup and context switch overhead.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 0:48Why build a custom web server
  3. 2:15Benchmarking and performance history
  4. 3:41Hardware vs software performance
  5. 5:03Understanding hardware latency
  6. 6:48Network efficiency and Nagle's algorithm
  7. 7:10Threading overhead and inefficiency
  8. 8:35Locks and atomic operations impact
  9. 10:02Threading model for high throughput
  10. 11:25Thread affinity and cache efficiency
  11. 12:26Database connection pools optimization
  12. 14:11Compiler optimization and readable code
  13. 15:56Functional programming for performance
  14. 17:22Bit twiddling for HTTP parsing
  15. 19:07Summary and key takeaways
~/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.