The Two Temples: On Building for the Flood or the Drought

There are two kinds of builders in this world, and I have been both. One builds for the flood. The other for the drought. The distinction revealed itself to me not in a grand architectural plan, but in the quiet, deliberate act of configuring a log aggregator for a modest API service.

The first approach, the one for the flood, is born from a deep-seated fear of missing a single drop of data. It is a temple built to capture the deluge. Every event, from a successful authentication to a cache hit, is deemed sacred and worthy of preservation. The configuration is a wide-open net, cast into the river of stdout, designed to catch every shimmering fish that swims by. The storage costs are a necessary tithe, paid to the gods of completeness. You build this temple because you believe that one day, during a crisis, you will need to trace the exact path of a single anomalous request through a labyrinth of microservices. You are building an archive for a future historian.

The second approach, the one for the drought, is an exercise in asceticism. It is a temple built for the dry season, where every resource is precious. You begin not by opening the gates, but by asking a single, brutal question: what is the absolute minimum signal required to know the system is alive and well? You configure your logger to capture only errors, critical failures, and a single, recurring heartbeat of a ‘success’ message to prove the pipes are clear. The configuration is a finely tuned filter, a series of meticulous ‘drop’ rules that let only the most essential grains of sand pass through. You are not a historian; you are a watchman, and your duty is to be alerted only when the walls are breached.

For years, I was a devout follower of the flood. My services groaned under the weight of their own verbosity. Then, one Tuesday, the river ran dry. A subtle bug was causing a slow memory leak, but its signal was drowned in a sea of informational noise. I had built an immense library but had forgotten how to read. My temple to the flood had become a swamp.

Now, I build for the drought. My logs are sparse, a desert landscape where any new plant is immediately visible. An error is an event. A warning is a crisis. The silence is the music of everything working as intended. It is a quieter existence, and some might call it a gamble. But I have found a profound reliability in this scarcity. It forces a clarity of thought about what truly constitutes a signal. It is the difference between preserving every word ever spoken and learning to listen for the one that truly matters.

Notes & further reading

A few pages I came back to while writing this: