Skip to content
Blog / Backend & APIs

Backend & APIs

Backend guides from running real services: Node.js patterns, API security, database decisions, and infrastructure that does not wake you up at night.

·5 min

Your Node.js Server Drops Requests on Every Deploy. Here's the Fix.

SIGTERM arrives, connections keep coming, and users get errors mid-deploy. Graceful shutdown in Express, Fastify, and behind load balancers, explained simply.

Node.jsExpressDevOps
·9 min

Zero-Downtime Database Migrations: The Expand-and-Contract Pattern

Most teams run migrations that lock tables and take the app down for minutes. The expand-and-contract pattern makes them safe to run in production. Here's how it works.

PostgreSQLMigrationsBackend
·7 min

PostgreSQL Connection Pooling: Why Your API Falls Over at 100 Concurrent Users

Most Node.js apps open a new Postgres connection per request and wonder why the database refuses connections at scale. Here's how connection pooling actually works.

PostgreSQLNode.jsBackend
·7 min

JWT vs Sessions vs OAuth: Which Auth Approach to Use in 2026

JWT vs sessions vs OAuth, explained without the hype: the real trade-offs, when each approach fits, and why localStorage JWT is rarely the right answer.

AuthenticationJWTSessions
·7 min

PostgreSQL Indexes That Actually Speed Up Your Queries (Most Don't)

80% of indexes I see in production are useless or harmful. They're added when a query is slow, never validated, never measured. Here's how to do it right.

PostgreSQLDatabasePerformance
·8 min

How to Secure Your Node.js API, JWT, Rate Limiting, and the Mistakes Everyone Makes

I audited a client's API and found their admin endpoint had no auth. They're not alone. Here are the 5 security must-haves every Node.js API needs.

SecurityNode.jsBackend
·8 min

Firebase vs Supabase, Which Backend Should You Pick for Your Mobile App?

Firebase has been the default for years. Supabase is eating its lunch. Here's when to use each, from someone who's shipped apps on both.

MobileBackendFirebase