All languages

JavaScript

You're viewing a free preview. Sign in free to read every script.

Why this exists A Node.js process runs your JavaScript on one thread . That is why it handles thousands of connections cheaply: while one request waits for a database, the thread serves another. It is also why one piece…

The Node.js Event Loop Explained: Execution Order, Blocking, Event Loop Lag and Worker Threads

Why one slow function makes a whole Node service stop answering: the order in which Node runs your code, a measured demonstration of a blocked event loop and its effect on health checks, and how worker threads move CPU-heavy work off the main thread.

Sign in free to read this script, along with the rest of the library.

Sign in free