Node.js: The Road to Workers
summary
Node.js ships experimental threading in Node.js 10 and 11 behind the --experimental-worker flag, implemented as a new worker_threads module that spawns independent Node instances with shared memory (SharedArrayBuffer + Atomics). Anecdotal benchmarks claim a 50% speed up on CPU work versus single-threaded code; startup costs remain nontrivial and native add-ons often need fixes. The feature exists, runs, and is usable for CPU-bound tasks, but remains experimental and evolving.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:53How did I get into Node.js core?
- 5:58What's the problem
- 7:14Existing solutions
- 8:33The solution: Worker threads
- 13:34Porting to Node.js
- 16:55The result
- 20:32Example
- 24:31Status
- 30:48Other approaches
related talks
33mNode.js: The Road to Workers
28mNode.js: The Road to Workers
35mNodeJS: from single thread to worker threads
33mNode.js Q&A
27mA Crash Course On Worker Threads
26mA Crash Course on Worker Threads
52mShared Memory in Multithreaded Node.js
13mConcurrency vs Parallelism in Node.js: Understanding the Event Loop & Worker Threads
