~/talk

Do Not Thrash the Node.js Event Loop

slides:none on file

Node.js apps self‑DoS when synchronous work blocks the event loop, forcing huge overprovisioning. Concrete fixes: measure with the eventLoopUtilization API (or a timer drift probe), reject excess traffic by return 503 when utilization > ~80–98% or event‑loop delay > ~200ms, or serve a cached empty HTML for busy React SSR. Examples: 20ms blocking limits to ~50 RPS, React SSR often costs 50–100ms, and a demo with 10s sync work falls to near zero without protection; these mitigations keep throughput and reduce timeouts.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Node.js event loop basics
  3. 5:00Synchronous blocking impact
  4. 8:38Event loop saturation
  5. 11:50Scaling CPU limits
  6. 13:19Measuring event loop health
  7. 15:28Event loop utilization API
  8. 17:40Fastify plugin protection
  9. 19:54Live demo setup
  10. 21:40Stress testing 50 connections
  11. 22:45Server collapse under load
  12. 23:27Event loop monitoring
  13. 24:55Traffic shaping resilience
  14. 26:38Worker threads offloading
  15. 27:40Request deduplication
  16. 29:26Platformatic solutions
  17. 29:49Q&A
~/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.