AlgoGymPreparationInterview Preparations
Cool NotesNode.js event loop
All notes

Node.js event loop

Node.js · Original AlgoGym revision note with a source for deeper study.

Node.js
  1. JavaScript callbacks run on the main event-loop thread; blocking CPU work delays all requests.
  2. Timers, I/O callbacks, and microtasks have different scheduling phases.
  3. Use workers or a queue for expensive computation and measure tail latency.
Read more at Node.js documentation