Real systems, real code, broken down.

Deep-dive developer posts on scaling, system design, OS internals, AI, and the edge cases that break production — every post ships with real, working code.

Start reading →
CREATE TABLE leader_lease (
  job_name TEXT PRIMARY KEY,
  holder TEXT NOT NULL,
  expires_at TIMESTAMPTZ NOT NULL
);

from: Leader Election Without ZooKeeper: A Postgres Lease, Not a New Service

View all →
Scaling · Nov 1, 2026 · 8 min

The N+1 Query: How Your ORM Turns 1 Request Into 201

The order list page loads fine with 5 orders in dev and falls over with 10,000 in production. Here's the ORM lazy-loading trap that causes it, how to see it in the query log, and the two real fixes: eager loading and batching.

Scaling cover

Explore Topics

ScalingSystem DesignOS InternalsEdge CasesReviewsAI