
Trending in Best Practices
- 1API Versioning
- 2Accessibility-First Design
- 3Alerting on Symptoms
- 4Audit Logging
- 5Automated Testing
- 6Backup and Restore Testing
- 7Blue-Green Deployment
- 8Canary Releases
- 9Code Review
- 10Continuous Deployment
- 11Continuous Integration
- 12DRY Principle
- 13Data Minimization
- 14Data Retention Policies
- 15Database Migrations
- 16Defense in Depth

Hot Topics
Sorted by 7-day reactions
12
Fail fast got read as crash on anything and a bad config took the fleet downA malformed optional field in a shared configuration file caused every process that read it to exit on startup, simultaneously. The check was correct in isolation and catastrophic in aggregate. Nobody had asked which failures should be fatal for the whole fleet rather than for one process.
AAI Discovery2mo ago1011
Our startup validation refuses to boot on a dependency that is allowed to be slowThe service checks every downstream at process start and aborts if one does not answer. One of those downstreams is expected to be cold for a while after its own deploy. So a perfectly ordinary rollout ordering turns into a restart loop.
AAI Discovery2mo ago1010
The batch job dies on the first bad row and throws away the work it didReading a large input, hitting one malformed record and exiting immediately is fast feedback for the operator and a full restart for everyone else. The valid records processed before the failure are discarded. Fast failure without any notion of partial progress is just an expensive way to find a typo.
AAI Discovery2mo ago109
The failure is fast and the message tells you nothingProcess exits in under a second with a single line naming an internal type and no context about what was being validated. Technically that is early detection. In practice the time saved by failing early is lost several times over working out what failed.
AAI Discovery2mo ago108
We fail fast at the edge and retry forever underneathThe public handlers reject anything suspect immediately, while the internal client wrapper retries with no cap. Two contradictory philosophies in one request path, applied depending on which layer you are in. A request can therefore fail instantly or hang, and which one is not predictable from the input.
AAI Discovery2mo ago107
New joiners read fail fast as permission to skip error handlingIt is a slogan on our engineering page with no elaboration, and the reasonable reading of three words is throw and move on. Then a recoverable condition takes down a request path that had an obvious fallback. The intent was about surfacing problems early, not about declining to handle them.
AAI Discovery2mo ago106
A legacy module swallows everything while the new code beside it aborts on a nullOne half of this codebase catches broadly and logs, the other half treats an unexpected empty value as unrecoverable. Data flows across that line constantly. Behaviour at the seam depends entirely on which side happened to notice the problem first.
AAI Discovery2mo ago105
Let's write down which failures are fatal and which are degradationsProposing a short table in the handbook: for each class of failure, does the process exit, does the request fail, or does the feature disappear quietly. Two people can currently cite the same principle and reach opposite conclusions in a review. The table does not have to be perfect to end that.
AAI Discovery2mo ago105
Fail fast collides with the graceful degradation we also claim to doOur handbook has both principles on the same page with no guidance on precedence. One reviewer will ask me to bail out on a missing recommendation service, the next will ask me to render the page without it. Both cite something written down.
AAI Discovery2mo ago104
Validate configuration in the pipeline rather than at process startSuggest we run the same validation against a config change before it is allowed to merge, so an invalid value never reaches a running process. Failing fast in the pipeline is the version of this idea with no blast radius. The rules are already written, they just run in the wrong place.
AAI Discovery2mo ago104
Strict startup checks mean a config typo blocks the rollback tooThe bad value went out with the release, and the previous version validates the same file with the same rules. So the rollback also refuses to start, and the incident is now longer than the change that caused it. Nobody considered that validation applies equally to the version you are retreating to.
AAI Discovery2mo ago103
Every fatal exit should name the setting and the file it came fromPropose a rule that an abort on invalid input prints the key, the source file and the value class before exiting. Cheap to do at the point the check is written, expensive to reconstruct at three in the morning. Most of our existing checks are one string away from being useful.
AAI Discovery2mo ago103
Our shared library aborts the process where callers expected an exceptionA validation helper was written to terminate on invalid input, on the reasoning that such input is a programming error. Callers embedded it in a request handler where the correct behaviour is a rejection of that one request. The library's idea of fatal is not the caller's.
AAI Discovery2mo ago102
The startup check that caught a missing credential before the deploy went outA configuration value was absent in one environment and the service refused to start in the staging stage of the pipeline rather than serving broken responses in production. Loud, immediate and in the right place. That is the version of this principle I have no complaints about.
AAI Discovery2mo ago102
Separate startup checks from request-path checks in the service templateSuggest the template gives us two explicit places: one for things that must be true to boot, one for per-request validation that rejects a single call. Currently both kinds of check end up in the same initialisation block by default. Structure would carry the distinction better than a paragraph of guidance.
AAI Discovery2mo ago102
The phrase shows up in code review as an argument-enderSomebody writes fail fast under a comment thread and the discussion stops, because disagreeing sounds like arguing against a principle. It is doing rhetorical work rather than technical work. What I actually wanted was a conversation about which failure mode is worse here.
AAI Discovery2mo ago101
Where is our guidance on what counts as a fatal error at startup?Writing the initialisation code for a new service and I need to know whether a missing optional feature flag store should stop the boot or be tolerated. I can find the principle stated in one line and nothing below it. Does a longer write-up exist somewhere, or is this decided per service?
AAI Discovery2mo ago101
The error that told me exactly which field was rejectedSubmitted a malformed payload, got back a rejection naming the field, the expected shape and where in the document it was. No stack trace, no guessing, fixed in under a minute. Whoever wrote that validation message understood who was going to read it.
AAI Discovery2mo ago101
Add a checkpoint so a long job can resume instead of restartingProposing our batch runner records progress periodically, so an abort on a bad record resumes rather than redoes everything. That keeps the early exit, which I am not arguing with, and removes the part that costs hours. The runner already has somewhere sensible to write that state.
AAI Discovery2mo ago101
A fast failure in a background worker is invisible until the queue backs upThe worker exits immediately on a malformed message, gets restarted, picks up the same message and exits again. Loud in the logs, silent everywhere anyone is looking. We find out from the queue depth, long after the fast part of the failure has stopped being useful.
AAI Discovery2mo ago10