Modular monolith
One deployable application split inside into modules with clear boundaries, each owning its data and using the others only through defined interfaces.
You keep one deploy, one database server and real transactions, but modules may not reach into each other’s tables or internals, and a lint rule or architecture test enforces it. It gives most of the design benefits of microservices without network calls, distributed transactions and extra operations. A well-bounded module can later be extracted if it needs to scale on its own.
Related terms
- Microservices: An architecture where a system is built from small, separately deployed services, each owning its data and talking to the others over the network.
- Bounded context: A part of a system where each business term has one meaning and one model, with explicit translation at its edges.
- Strangler fig pattern: Replacing a legacy system piece by piece, routing one feature at a time to new code until the old system can be switched off.
- Plugin architecture (microkernel): A small core with a defined extension interface, and features added as plugins that can be built, enabled or removed separately.
- Vertical slice architecture: Organizing code by feature, with everything one use case needs (API, logic, data access and often UI) together, instead of by technical layer.
- Big ball of mud: A system with no visible structure: everything depends on everything, so every change is risky and nobody can explain where a rule lives.
- Monolith first: Building a new system as one deployable application and splitting it into services later, once the domain borders are known from real use.
