Node.js: The Road to Workers
summary
Node 10 ships an experimental worker_threads module (enable with --experimental-worker) that embeds separate V8 instances in threads, supports message ports, transferring ArrayBuffers and SharedArrayBuffer + Atomics, and can eval inline code or run filenames. A user reports 50% speedup (5ms → 2ms) in one case. DevTools debugging works; native handle passing and Windows polish remain unfinished, and APIs are still allowed to change while experimental.
AI-written summary · about
chapters (11)
- 0:00Intro
- 0:29How did I get into Node.js core?
- 3:05Backing up a little bit...
- 4:06What's the problem
- 4:59Existing solutions
- 6:50The solution: Worker threads
- 12:28Porting to Node.js
- 15:32The result
- 21:30Example
- 24:02Status
- 26:40Other approaches
related talks
34mNode.js: The Road to Workers
33mNode.js: The Road to Workers
26mA Crash Course on Worker Threads
27mA Crash Course On Worker Threads
33mNode.js Q&A
35mNodeJS: from single thread to worker threads
40mNode.js: Where are we now, where are we going?
23mDecomposition of the Main Thread in Node.js to increase throughput
