How Node.js Waits

How Node.js Waits: The Event Loop, in Server Terms.

Updated

  1. The Event Loop, in Server Terms (Journeyman): Node runs your JavaScript on one thread, like one waiter serving many tables, so it serves many requests at once by starting slow file and network work and moving on while it waits, and a long CPU-heavy loop makes every user wait.