Field notes / Vol. 01

Notes from the failure path.

Short technical essays on the parts of distributed systems that only become visible when a process is late, a broker restarts, or a retry arrives twice. Written from systems I have actually run.

№ 03

Persist before you acknowledge

A chat message is a small distributed-systems problem. The order of three operations — persist, acknowledge, broadcast — decides whether it survives a timeout.

№ 02

A worker that is only mostly dead

Leases turn ownership into a deadline. Heartbeats keep it alive. Fencing makes sure the worker that woke up late cannot overwrite the one that replaced it.

№ 01

Timers that survive the broker

A delayed message is not a calendar. Moving wakeups into PostgreSQL made the scheduler's timers inspectable, recoverable, and immune to a broker restart.