Architecture Counterexamples
Architecture advice travels as rules. Retries make systems more reliable. Caching makes things faster. Add replicas for availability. Each rule is true often enough to become folklore, and false in specific, predictable conditions that cause real outages.
In mathematics, one counterexample is enough to show a general claim is false, and the useful question becomes: under what conditions is it true? This section applies that idea to software architecture. Each entry takes a widely repeated rule, builds one concrete case where it fails, shows the arithmetic, explains the mechanism, and ends with a better rule.
The point isn’t that the original advice is wrong. It’s that advice without its conditions is a trap, and senior engineers are the people expected to know the conditions.
The section has two kinds of counterexample:
- Rules that break take a popular rule and defeat it with arithmetic.
- Failure stories take a design a capable team would ship and show the short sequence of events in which it does the wrong thing, with two competing designs and a check that tells them apart.
How each rule counterexample works
Section titled “How each rule counterexample works”| Part | What it gives you |
|---|---|
| The claim | The rule as people usually state it, in design reviews, blog posts and interviews |
| The counterexample | One concrete scenario, with every assumption stated and numbers you can check |
| The mechanism | Why it fails: the part the short version of the rule leaves out |
| When the claim holds | The conditions under which the original advice is right, so this isn’t contrarianism |
| The better rule | The claim restated so it stays true |
| Try it yourself | A simulator: change the assumptions and watch the result and chart change |
| For educators | A discussion question and an exercise, with a worked answer |
The scenarios are constructed: simplified models with explicit assumptions, not reports of real incidents. Real systems are messier, so treat the numbers as illustrations of a mechanism, not predictions. Each entry links to published incidents and research that show the same mechanism in the wild.
Rules that break
Section titled “Rules that break”| Claim | What breaks it | Category |
|---|---|---|
| “Retries make systems more reliable” | Under overload, retries add load and no successes | Resilience |
| “More replicas mean higher availability” | Quorum arithmetic and shared failures | Resilience |
| “Caching makes things faster” | Low hit rates and stampedes | Performance |
| “Autoscaling handles traffic spikes” | Scaling lag and connection limits | Scalability |
| “Microservices scale better than a monolith” | Fan-out multiplies failures and tail latency | Software styles |
| “A queue makes the system faster” | Queues add waiting time; utilization decides how much | Performance |
Failure stories
Section titled “Failure stories”Twenty-four stories in six groups, each with a timeline, two designs and an observable check. See them all.
| Group | Start with |
|---|---|
| Requests, retries and side effects | The reservation that succeeded twice |
| Events and replay | The replay that emailed every customer again |
| Time, ownership and inter-agency data | The address correction that rewrote history |
| Migration, backfills and cutovers | The migration that passed reconciliation, with a lab you can run |
| Concurrency and ownership | Two valid transactions left nobody on call |
| Observability and recovery | The healthy dashboard for a broken customer journey |
To practice recognizing these mechanisms, spot the flaws in realistic design documents, or play an incident drill.
Every failure story’s check is also in the checks catalog, as test templates in Java and Python, with SQL invariants.
New counterexamples are added regularly; the changelog lists each one.
Who this is for
Section titled “Who this is for”- Software architects who need to explain, in a design review, why a familiar rule doesn’t apply to this system.
- Staff and principal engineers who are asked to settle debates with reasoning rather than authority.
- Engineering educators and mentors who want material that teaches judgment instead of slogans. Each entry has an exercise that works in a class, a study group or a team lunch.
Using these in teaching
Section titled “Using these in teaching”Each counterexample is designed to run as a 30- to 45-minute session:
- Present the claim and ask the group whether they agree. Most will.
- Walk through the scenario and let the group predict the outcome before showing the arithmetic.
- Discuss the mechanism and the conditions under which the claim holds.
- Set the exercise: change one assumption and work out what happens. Worked answers are on each page.
Suggest a counterexample
Section titled “Suggest a counterexample”Have a rule you’ve watched fail? Send it, with the conditions under which it broke, through the contact details on the about page. Published suggestions are credited with your permission.
Related pages
Section titled “Related pages”- Incidents by mechanism, published postmortems sorted by failure mechanism
- Failure library, real incidents and what they teach
- Trade-off analysis
- Quality attributes and NFRs
- Example Lending, where many of these mechanisms are designed for
Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.