Filter 16 posts
2026
// Graceful shutdown handler
const shutdown = async () => {
  log('Draining connections...');
  await server.close();
  await db.disconnect();
  process.exit(0);
};
Code Node.js

Graceful Shutdown Patterns for Node.js Services

The difference between a clean deploy and a 3 AM Slack message is often just a few lines of shutdown logic.

Feb 16, 2026 15 min read
Opinion Architecture

Microservices Are Not the Answer (Usually)

After migrating three monoliths to microservices and then two of them back, I have some thoughts. The industry obsession with distributed systems as a default starting point is costing teams years.

Jan 24, 2026 14 min read
"Simplicity is prerequisite for reliability."
Edsger W. Dijkstra
2025
Parenting

Teaching a Ten-Year-Old to Debug

My son's Scratch game had a bug. I watched him systematically narrow it down. He has never read a debugging book in his life. Maybe it is more instinct than skill.

Dec 6, 2025 4 min read
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
Martin Fowler