The Two Temples: On Building for the Flood or the Drought
There’s a quiet schism in the world of small services, one that reveals itself not in flame wars or holy texts, but in the silent architecture of a backup script. It’s the fundamental choice between two philosophies: building for the flood, or building for the drought. One approach is a monument to abundance, the other a shrine to scarcity. And the first time you witness your system fail, you learn which temple you’ve been praying in.
Building for the flood is an act of faith in plenty. Its backup strategy is a roaring cascade of `rsync -a --delete`, a perfect, complete mirror of the present state, replicated across continents in near-real-time. Its logs are verbose, unrotated rivers of JSON, capturing every heartbeat and hiccup, stored on vast, cheap object storage because why not? The philosophy is simple: disk is cheap, bandwidth is plentiful, and the primary sin is omission. If a failure occurs, you want the entire, glorious, unedited record of what was. You are building a temple to the god of Everything, Everywhere, All at Once.
Building for the drought is a practice of disciplined conservation. Its backups are incremental, differential, and fiercely prioritized. It doesn’t mirror the present; it carefully preserves a curated history of changes, knowing that restoring *from* a point is more valuable than restoring *to* a point. Its logs are stark, rotated with prejudice, and their value is not in their volume but in the specific, actionable signal they’ve been tuned to extract. This philosophy whispers that resources, even cheap ones, are never truly infinite, and that noise is a greater enemy than silence. You are building a temple to the god of Just Enough.
The first major crisis I faced was a corrupted database. My system, built in the temple of the flood, had terabytes of pristine, point-in-time snapshots. Restoring one, however, was a monumental, hours-long undertaking that felt like trying to take a single book from a library by airlifting the entire building. Meanwhile, a colleague, whose work I’d secretly considered overly austere, had their service back online in minutes. Their drought-era system restored only the necessary transaction logs onto a pre-warmed standby, a surgical procedure compared to my brute-force transplant.
I hadn’t been wrong, precisely. My temple had protected the data. But it was built for a theoretical catastrophe—a meteor strike, a total wipe—where the only requirement was total reconstruction. Theirs was built for the more common, more insidious drought: a slow corruption, a partial failure, where the constraint wasn’t data availability, but time. I was prepared for the deluge, but I was drowning in the recovery. They had conserved their resources for the precise moment they were needed most. It was the first time I saw that reliability isn’t just about having everything; it’s about knowing what, exactly, you need to have, and when.
Notes & further reading
A few pages I came back to while writing this: