worker churn
Repeatedly creating and destroying workers or threads, wasting time and memory on start-up instead of on useful work.
In more detail
Keeping a pool of long-lived workers avoids it. It shows up as high latency and memory spikes whenever load changes.
Related terms
- thread pool — A fixed or bounded set of reusable worker threads that take tasks from a queue, instead of creating a new thread for each task.
- worker threads — The Node.js module for running JavaScript in parallel threads inside one process, each with its own V8 isolate and event loop.
Taught in
- Thread Pooling: Piscina & CPU-Bound Workload Pools — Node.js Internals & Backend Services