Node.js: The Road to Workers
summary
Node.js ships experimental multithreading via the worker_threads module that runs separate Node instances with separate event loops, supports SharedArrayBuffer and Atomics for shared memory and synchronization, and shows real gains — a reported 50% speedup on a 6‑core machine (5 ms → 2 ms) for a CPU task. Caveats: Windows startup/cleanup bugs, npm name conflicts, addon thread‑safety, expensive worker bootstraps, and terminate uses an uncatchable exception so API and behavior may change.
AI-written summary · about
chapters (7)
- 0:00Start
- 5:31Backing up a little bit... How is Node.js structured?
- 7:24What's the problem
- 7:58Existing solutions
- 16:57Porting to Node.js
- 26:09Example
- 31:36Finally: Heads up!
related talks
34mNode.js: The Road to Workers
28mNode.js: The Road to Workers
35mNodeJS: from single thread to worker threads
26mA Crash Course on Worker Threads
27mA Crash Course On Worker Threads
13mConcurrency vs Parallelism in Node.js: Understanding the Event Loop & Worker Threads
52mShared Memory in Multithreaded Node.js
33mNode.js Q&A
