Q2 · How do you decide between a monolith, modular monolith, and microservices for a new system?

Back to 24 Architecture Questions.

The question is not “pick a shape from a menu”. The axis it turns on: what a moved boundary costs later, not what the topology looks like on day one. All three options hold the same business capabilities; what differs is what enforces the boundary between them, and what it costs to redraw it once it exists.

Same boundary, different price The same three modules, Orders, Billing, and Search, shown as a monolith with convention-only boundaries, a modular monolith with enforced boundaries in one deployable, and microservices where the boundary is a network call between three deployables. FIGURE 2 SAME BOUNDARY, DIFFERENT PRICE Monolith Modular Monolith Microservices Orders Billing Search Orders Billing Search Orders Billing Search one deployable boundary is convention one deployable boundary is enforced code three deployables boundary is a network call same modules, same business boundary; only the enforcement and the moving cost change

What the answer should contain

Boundaries are drawn before topology is picked. Identify the business capabilities first: orders, billing, search. They exist in all three options. Topology only decides what enforces the seams between them.

Know the three enforcement levels.

Default for a new system: modular monolith. One deploy pipeline, and boundaries that are actually enforced. Every system that later needs microservices first needs exactly these module seams; extraction happens along them.

Extract on evidence, not anticipation. Each trigger names one module, not the whole system: an independent scaling profile, a team ownership boundary, a deploy-cadence conflict, a fault-isolation need. “We will be big someday” is not a trigger.

Extraction is one module at a time. Strangler pattern: move one capability behind an interface, then behind a process. Small moves stay reversible.

Name the cost of a moved boundary. In a modular monolith, moving a boundary is refactoring plus tests in one repo: days. In microservices, it is splitting data, rewriting contracts, coordinating deploys: weeks to months. The choice decides which bill you pay later, and you pay it while knowing the least about the domain.

Ideas worth mentioning out loud

Follow-ups to expect

Red flags in an answer

Sources