Writing

Blog

I write about backend architecture, Node.js, and building scalable systems. Technical deep-dives with real code.

FeaturedBackend Architecture

Feature Toggles: A Backend Engineer's Complete Guide

How to design, implement, and retire feature toggles in a NestJS/Node.js backend — covering toggle types, PostgreSQL + Redis storage, NestJS decorators, gradual rollouts, and avoiding the toggle graveyard.

Apr 14, 2026·12 min read
DevOps

Node.js Graceful Shutdown in Production

How to properly shut down a Node.js/NestJS server — handling SIGTERM, draining in-flight requests, closing database connections, and avoiding dropped requests during Kubernetes rolling deploys.

Jul 15, 2026·4 min read
node.jsnestjsdevops
Backend Architecture

Socket.io at Scale: Lessons from 5,000 Concurrent Users

What we learned building AutoBazaar, a real-time auction platform that hit 5,000 concurrent users — Socket.io architecture, Redis adapter, rooms, and the mistakes we made early on.

Jun 30, 2026·5 min read
socket.ionode.jsredis
Backend Architecture

Stripe Webhooks: Making Them Truly Idempotent

How to handle Stripe webhooks correctly in Node.js — signature verification, idempotent processing, database-level deduplication, and the failure modes that cause double charges.

Jun 15, 2026·5 min read
stripenode.jsnestjs
PostgreSQL

PostgreSQL Query Optimization for High-Traffic Applications

Practical PostgreSQL optimization techniques from a production e-commerce platform handling 1,000+ orders/day — indexes, EXPLAIN ANALYZE, connection pooling, and the queries that actually hurt.

May 30, 2026·6 min read
postgresqlperformancedatabase
Node.js / NestJS

NestJS Guards & RBAC: JWT Authentication from Scratch

Build a complete role-based access control system in NestJS — JWT auth, custom guards, role decorators, and permission checks without a third-party library.

May 15, 2026·5 min read
nestjsjwtauthentication
Backend Architecture

BullMQ Patterns: Idempotency, Retry Logic & Dead-Letter Queues

Production patterns for BullMQ in NestJS — idempotent job processing, exponential backoff retry, dead-letter queues, and handling the edge cases that burn you in production.

Apr 30, 2026·5 min read
bullmqredisnestjs
Backend Architecture

Feature Toggles: A Backend Engineer's Complete Guide

How to design, implement, and retire feature toggles in a NestJS/Node.js backend — covering toggle types, PostgreSQL + Redis storage, NestJS decorators, gradual rollouts, and avoiding the toggle graveyard.

Apr 14, 2026·12 min read
nestjsnode.jsarchitecture
Backend Architecture

Multi-Tenant SaaS: 4 Database Isolation Strategies Compared

A deep dive into schema-per-tenant, database-per-tenant, row-level security, and shared schema approaches with real PostgreSQL examples.

Mar 24, 2026·4 min read
postgresqlsaasarchitecture

Stay in the loop

Get my technical deep-dives in your inbox. No spam, unsubscribe anytime.