Express.js Middleware Patterns You Should Know
Express.js

Express.js Middleware Patterns You Should Know

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, execution order, why next() trips everyone up, async error handling, and the patterns we actually use in production.

11 min read 3,620 views
#express #middleware #error-handling #nodejs
Continue Reading →
Migrating a Node.js Project to TypeScript
TypeScript

Migrating a Node.js Project to TypeScript

When our team decided to migrate to TypeScript, I thought it'd take a week. It took three months. Here's the full story -- what went smoothly, what broke, how we handled strict mode, third-party types, and the build pipeline.

11 min read 3,751 views
#typescript #migration #nodejs #tsconfig
Continue Reading →
Understanding the Node.js Event Loop: A Deep Dive
Node.js

Understanding 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 on one thread, and the mistakes I kept making that blocked it.

8 min read 7,401 views
#event-loop #async #nodejs #performance
Continue Reading →
Monitoring Node.js Apps with Prometheus and Grafana
DevOps

Monitoring Node.js Apps with Prometheus and Grafana

After flying blind in production one too many times, I set up Prometheus and Grafana for our Node.js services. It took some trial and error. Here's what the setup actually looks like once it's working.

12 min read 1,968 views
#prometheus #grafana #monitoring #nodejs
Continue Reading →