The Node.js Event Loop: A Deep Dive
I've been asked about the event loop more than any other Node.js topic. Here's how I finally made sense of it -- why Node can juggle thousands of connections.
In-depth tutorials, practical guides, and real-world patterns from the trenches of web development. No fluff, just code that works.
Hand-picked pieces that cover fundamental concepts every developer should know
I've been asked about the event loop more than any other Node.js topic. Here's how I finally made sense of it -- why Node can juggle thousands of connections.
Every Express tutorial ends at app.get('/hello'). Here's what I've actually learned shipping Express APIs to production -- project layout, error handling...
Fresh content to keep your skills sharp
Middleware is how Express works. Not just a feature of it -- it is the whole thing. This is the talk I give to every new hire: the five middleware types...
Sometimes Node needs to shell out to run ffmpeg, a Python script, or a system command. The child_process module gives you four ways to do it, and each has...
Buffers tripped me up for a while. They're how Node handles raw binary data outside the V8 heap, and once you actually understand what's happening with...
Our API went down on a Saturday because we were running a single Node process on a single core with no recovery plan. This post walks through what we...
I got tired of repeating the same terminal commands, so I built a CLI tool with Node.js over a weekend. Here's how I set up argument parsing, interactive...
Streams are the reason Node.js can handle giant files without running out of memory. Most tutorials explain the theory and skip the parts that actually...