Dark navy diagram of one deployable module block beside several small services with their own data stores
monolith vs microservicesmicroservicesmodular monolithsoftware architecturebackendengineering

Monolith vs Microservices: When to Split

Monolith vs microservices: start with a modular monolith, split a service when deploy, scale, or team boundaries are actually blocked, and do not split the database on day one.

Swati ChaudharyFounder, Myrafy

Monolith vs microservices is the architecture argument that shows up before the product has a second team, a second deploy pain, or a second scaling problem.

A monolith ships as one deployable unit. A modular monolith is the same unit, with hard internal boundaries so billing code cannot reach into the UI kit. Microservices split those boundaries into separately deployed processes, usually with separate data. The split is a bet that independent deploys and independent scale are worth the network, the tracing, and the failure modes.

For a first product, the modular monolith wins more often than the slides admit. The split is earned.

What Each One Actually Is

One deployable system with internal modules, contrasted with separate services that each own their data
Modules inside one deploy, or services that own their own data.

Modular monolith Microservices
Deploy One artifact, one pipeline One pipeline per service, or a painful shared one
Data One database, schemas or modules kept apart in code A database per service is the point. Shared tables undo it
Call style In-process function Network. Timeouts, retries, partial failure
Scale You scale the whole process You scale the hot service
Team One team can hold the map Each team can ship without waiting on the others
Local dev Clone, run, debug A stack of processes, or a stub for each neighbor
First outage A bad release takes the app down A bad release takes a slice down, and the rest time out waiting

Monolith answers: "Can we ship this product as one thing we understand?" Microservices answers: "Can team A ship when team B is mid-migration, and can this one workload scale alone?"

If you cannot name the second answer with a real incident or a real team, you are choosing a topology, not solving a problem.

Stay in One Deploy Until a Boundary Hurts

A modular monolith is not a compromise. It is the design that keeps options open.

Keep one deploy when

  • One team, or two squads that still release together
  • You cannot yet name three modules that change for different reasons
  • The database transactions you need cross "services" you have not split
  • Local setup is already slower than the feature work
  • You have not automated build, test, and a boring release. Containers first. See Docker vs Kubernetes

Draw the modules anyway

  • Orders do not import UI components
  • Billing does not write straight into the user table from a controller
  • Each module has a public interface inside the repo
  • A change in one module has a place to put a test that does not boot the world

That interface is what you will later put on the network. If it does not exist inside the repo, a Kubernetes service will not create it. You will get a distributed monolith: many repos, one shared database, and no one who can deploy alone.

Split When the Pain Is Specific

Split a piece, not the product.

A split is justified when

  • One workload needs to scale, and scaling the rest is waste you have already measured
  • One team is blocked on another's release every week
  • A failure domain must stay up when another is down (payments vs. the marketing site is the classic, and they were never one app)
  • A compliance boundary requires separate data and a separate audit
  • Deploy of the whole unit takes so long that people stop shipping

A split is not justified when

  • A conference talk said so
  • You want a microservice on a resume
  • The "services" still share tables and a release train
  • You have no tracing. You will not find the slow hop. OpenTelemetry on Node.js is the minimum once a call leaves the process

When you do split, give the new service its own data and a contract. Synchronous calls in a chain of six services recreate the monolith with extra latency. If the work can be asynchronous, a queue is often the real boundary, not another HTTP hop.

How a Cutover Goes Wrong

A staged split: one module extracted, its own data, the old path still serving until the new path is proven
Extract one module. Keep the old path until the new one is proven.

The same rule as a legacy cutover: do not rewrite the system over a weekend and call it services.

  1. Name one module with a real boundary.
  2. Wrap it behind an interface the monolith already calls.
  3. Move its data with a plan for the dual-write or the backfill. Shared tables are how the split silently fails.
  4. Run the new process in shadow, or behind a flag, until the results match.
  5. Leave a way back for one release.
  6. Only then delete the in-process path.

Six services extracted in one quarter, with no tracing and a shared database, is a more expensive monolith.

What to Put in the SOW

If a proposal says "microservices architecture" and does not say which boundary, ask for the boundary.

Write down Why
The modules that stay in one deploy Stops a default rewrite
The one service you might extract, and the trigger Scale, team, or compliance. Not taste
Who owns the data after a split Avoids the shared-table trap
How you will trace a request Otherwise production is a guess
What "done" means for the first release A running product, not a cluster diagram

What belongs in a software SOW applies here as much as it does to a feature list. An architecture slide is not acceptance.

Cloud choice does not decide this. Azure vs AWS is about the account and the services you already run. Both will happily host one container or twenty.

FAQ

Is a modular monolith just a monolith with folders? Only if the folders are suggestions. The test is whether one module can change without a drive-by edit in three others, and whether the database access is not a free-for-all.

Do startups ever need microservices? Yes. A separate worker, a separate realtime path, or a payments boundary shows up early. That is one or two processes. It is not fifteen services on day one.

What about serverless? A function per endpoint can be a third topology with the same trap: distributed logic, shared data, and no map. Use it for a spiky edge, not as a substitute for a boundary.

Can we merge services later? Yes, and teams do, once the operational cost exceeds the independence. Merging is cheaper if the contract was explicit. It is miserable if every service reached into every table.

The Bottom Line

Monolith vs microservices is a timing decision. Build a modular monolith with real internal boundaries. Split the module whose deploy, scale, or failure domain is already hurting. Keep its data and a trace with it. A diagram of twenty boxes is not an architecture until someone can deploy one of them on a Thursday without taking the product down.


Need a first release with a boundary you can split later, not a cluster you cannot run? See cloud and DevOps or contact us for an estimate.

Share
𝕏in
Contact us