~/talk

Decomposition of the Main Thread in Node.js to increase throughput

Talkat NodeConf Argentina 2018 · 2018-10-18..10-20· [nodejs, frontend-architecture]
slides:none on file

Claims that decomposing Node.js main thread by offloading CPU work, logging and APM to separate processes and threads raises throughput from ~119 rps to ~1,318 rps on one machine. Implements prototypes using worker_threads, cluster and child_process pools, V8 improvements like Orinoco, a faster router/serializer such as Fastify with JSON schema, streaming server‑side rendering moved to threads, off‑process log transport and lightweight APM; reports +27%, +17%, +25% and ~10x end‑to‑end gains.

AI-written summary · about

  1. 0:00Intro
  2. 0:34NODE.JS IN ENTERPRISE
  3. 1:26MUST-HAVE PART
  4. 2:43RESPONSE TIME
  5. 2:59DISPERSION
  6. 3:44GARBAGE COLLECTION
  7. 4:07INCREMENTAL COLLECTION
  8. 4:57PARALLELIZATION
  9. 6:09WORKER THREADS
  10. 6:42DEMO APP ARCHITECTURE
  11. 9:02DECOMPOSING
  12. 9:54PROCESS POOL
  13. 10:31THREAD POOL
  14. 10:49DE/SERIALIZATION
  15. 11:29IN NOT NATIVE ENV
  16. 13:30OPTIMIZATIONS
  17. 14:20FRAMEWORK CHANGE RESULT
  18. 15:23CLUSTER
  19. 15:38APPLICATION PERFORMANCE MONITORING
  20. 18:03SERVER-SIDE RENDERING
  21. 18:20MICRO FRONTENDS
  22. 19:09REACT 16
  23. 20:34DECOMPOSED MAIN THREAD LIBUV THREADPOOL APPLICATION
  24. 22:37REFERENCES
~/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.