The Thread Pool Trap: Why Increasing UV_THREADPOOL_SIZE Can Make Node.js Slower
More threads should mean more performance — but in Node.js, increasing UV_THREADPOOL_SIZE can actually reduce throughput. Here's why.
6 posts tagged with "libuv"
More threads should mean more performance — but in Node.js, increasing UV_THREADPOOL_SIZE can actually reduce throughput. Here's why.
How libuv's tiny threadpool can quietly throttle your Node.js APIs — and why scaling it blindly can make things worse.
Why setTimeout(0) and setImmediate() behave differently — and how understanding event loop phases separates senior engineers from the rest.
A deep dive into Node.js event loop phases, why timers are not precise, and how poll phase behavior shapes real-world performance.
A deep dive into libuv, the system-level engine that powers Node.js concurrency, from epoll to threadpools.
Most engineers misunderstand the Node.js event loop. It doesn’t run async work—it schedules callbacks. This deep dive explains what really happens under the hood.