Writing on systems, AI, and shipping software

I build distributed systems and agent fleets, and I write about the unglamorous engineering that actually makes software work at scale. Pieces are grouped below by theme.

Systems

18 min read
How OpenAI scales PostgreSQL: one writer, nearly 50 replicas, and the work around them

A technical deep dive into OpenAI’s read-heavy PostgreSQL design: WAL fan-out, replica lag, connection pooling, cache coordination, overload control, and schema limits.

8 min read
Why static beats dynamic for document sites

A server, a database, and a runtime to return a page that hasn't changed in three weeks. The case for shipping cacheable HTML, and the pages that earn live computation.

7 min read
Fifty pull requests in a week

Small diffs, review queues, integration checks, and recovery: what it takes to keep a fifty-PR week moving.

11 min read
A field guide to distributed-systems failure

Ambiguous outcomes, payment retries, deadlines, and the resource limits that keep one failing dependency from exhausting a service.

AI

9 min read
An agent fleet needs boundaries

Task ownership, Git worktrees, resource leases, and recovery records for a fleet of coding agents.

10 min read
The economics of LLM inference at scale

Token billing, prefix caching, KV memory, batching, and cost per accepted task under explicit quality and latency constraints.