Architecture anti-patterns: distributed monoliths and big balls of mud
The structural mistakes that make systems slow to change and painful to run, and how to recover.
Key takeaways
- A distributed monolith has the costs of microservices and the coupling of a monolith.
- Shared databases between services are the most common root cause.
- Fix architecture incrementally with the strangler fig approach.
Architecture anti-patterns are expensive because they affect every change. Here are the ones teams fall into most.
#Distributed monolith
You split a system into services, but they still must be deployed together, share a database and call each other synchronously in long chains.
- Symptoms: "We can't deploy Orders without Billing." One slow service takes everything down. Schema changes need five teams.
- Fix: give each service its own data, communicate through well-defined APIs or events, and accept eventual consistency where it's fine. Or merge services back into a modular monolith. There's no shame in that.
#Big ball of mud
No recognizable structure: everything depends on everything. It usually grows from deadline pressure and missing boundaries.
- Fix: define module boundaries, enforce them with tooling (dependency rules, architecture tests), and move code gradually.
#Shared database integration
Multiple applications reading and writing the same tables. Any schema change can break unknown consumers.
- Fix: one owner per table. Others use an API, events or a read replica with a published contract.
#Chatty services
A single user request triggers dozens of network calls between services.
- Fix: coarser APIs, batch endpoints, caching, or reconsider the service boundaries.
#Resume-driven development
Choosing technology because it looks good on a CV rather than because it fits the problem.
- Fix: Architecture Decision Records that must state the problem, the options and the trade-offs.
#Inner-platform effect
Building a configurable "engine" so flexible it becomes a bad copy of a programming language: rules engines with loops, YAML with conditionals.
- Fix: keep configuration declarative. If you need logic, write code.
#Recovering: the strangler fig
Don't rewrite from scratch. Like a strangler fig growing around a tree:
- Put a routing layer (proxy, API gateway) in front of the old system.
- Build new functionality, or re-implement one slice, alongside it.
- Route that slice's traffic to the new code.
- Repeat until the old system can be retired.
Warning: The "big rewrite" is itself an anti-pattern. It usually takes 2–3x longer than planned while the old system keeps changing.
Keep reading
The most common code-level anti-patterns, how to recognize them and how to refactor your way out.
The team and process traps that quietly destroy productivity and morale, and what healthy teams do instead.
The new failure modes of AI-assisted development, and the habits that prevent them.