Performance
22 Jun 2020
Stable Workers Threads in Node.js for High-CPU tasks
Node.js is single-threaded. Everyone knows this.
It’s also the source of the most common misconception about Node: that it can’t do CPU-intensive work. It can. Worker Threads have been stable since Node.js 12 LTS (April 2019), and they give you actual parallelism — not the cooperative multitasking of the event loop, but real OS-level threads running JavaScript in parallel.
So why, a year later, do most teams I talk to still haven’t touched them?