Modular monolith
One deployable application, divided into modules with enforced boundaries and owned data.
Strengths
- One thing to deploy, monitor and debug.
- Cross-module workflows can use ordinary database transactions.
- Clean modules can be extracted into services later if there’s a measured need.[3] MonolithFirst, Secondary, Not yet verified by an editor
Weaknesses
- Shared runtime: a memory leak or bad deploy affects every module.
Choose it when
- One team, or a few teams on one product, with moderate scale.
Limitations
- Scales as a whole; one hot module can’t be scaled on its own.