Node.js & Express
Blocking vs Non-Blocking Code in Node.js: Why It Makes or Breaks Your Server
Learn how blocking code kills Node.js server performance and how non-blocking async I/O fixes it. Real file and DB examples with benchmarks.
5 articles
Learn how blocking code kills Node.js server performance and how non-blocking async I/O fixes it. Real file and DB examples with benchmarks.
Learn what Node.js is, how V8 and libuv power it, and why its event-driven model makes it ideal for I/O-heavy server-side applications.
Learn how Node.js uses the event loop and libuv to handle thousands of concurrent requests on a single thread — with real code examples.
How JavaScript runs one thing at a time, and how asynchronous code hands off slow work like API calls and timers without freezing the page.
Why setImmediate sometimes runs before setTimeout(fn, 0) in Node.js and sometimes after: the event loop phases and timer precision behind it.