Scaling Node.js and unblocking the Event Loop
summary
Claims that moving CPU work out of the main thread prevents cases like a process stuck on 200k rows by loading modules into another process via sr and using Node core tools like child_process and worker threads. Advises measurement with block-pet, shows chunking arrays by hundreds and using streams instead of tight while loops, explains serverless and load‑balancing options, and demos a 5s blocking loop running in a child process so the main event loop keeps responding.
AI-written summary · about
chapters (6)
related talks
35mNodeJS: from single thread to worker threads
13mConcurrency vs Parallelism in Node.js: Understanding the Event Loop & Worker Threads
20mAfter Years of Node in Production, We Still Block the Event Loop
39mYou Don’t Node.js
34mYou Don't Know Node.js
49mA Journey into Node.js Internals
30mDo Not Thrash the Node.js Event Loop
32mNODE.JS WORLD
