~/talk

Can We Double HTTP Client Throughput?

Talkat Node Congress 2021 · 2021-02-18..02-19· [nodejs, web-performance]

New HTTP client undici claims a concrete speedup: using keep‑alive and pipelining avoids TCP head‑of‑line blocking so measured end‑to‑end throughput doubles and can peak ~3x versus node core http in benchmarks (500 parallel requests, 10 ms target, 50 socket limit). Practical fixes include always using an agent, switching to LIFO agent scheduling to cut ECONRESET/timeouts, and enabling pipelining where datacenter links are reliable; the library is implemented from scratch and shipped.

AI-written summary · about

  1. 0:00Start
  2. 0:50A little bit about me
  3. 3:21Microservices!
  4. 3:57The link between microservices
  5. 4:53TCP 3-way handshake
  6. 5:58TCP Congestion Window
  7. 8:52Scenario
  8. 9:28Benchmark results
  9. 10:00HTTP/1.1 pipelining
  10. 11:04Beware of Head-of-Line Blocking
  11. 11:57Event loop primer
  12. 13:34Timeouts and ECONNRESETS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.