From Socket to Callback — The Hidden Journey of Every Node.js Request
A deep dive into how a single HTTP request travels through the OS, libuv, and the Node.js event loop.
12 posts tagged with "event-loop"
A deep dive into how a single HTTP request travels through the OS, libuv, and the Node.js event loop.
A deep dive into how Node.js, the OS kernel, and the event loop actually behave under massive concurrent load.
A practical guide to diagnosing and fixing event loop lag in Node.js using flamegraphs, async tracing, and real production techniques.
How to correctly measure event loop lag in Node.js using perf_hooks, histograms, and percentile-based alerting.
Why CPU usage lies about Node.js health and how event loop lag reveals real performance bottlenecks.
Low CPU usage doesn’t mean your Node.js API is fast. Learn how event loop lag, downstream latency, and hidden bottlenecks degrade performance.
A deep dive into how a single blocking operation can bring down an entire Node.js system — and why most engineers underestimate this risk.
Deep dive into Node.js microtasks, process.nextTick, and Promises — and how they secretly control execution order and can block your system.
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.