The Node.js Event Loop Explained: How Single-Threaded Serves Thousands
Almost every confusing thing about Node.js — why a slow function freezes your entire server, why setTimeout(fn, 0) does not run immediately, why a Promise resolves before a timer you set first — trace
amanksinghin.hashnode.dev6 min read