Skip to content
EqualStack
Engineering

Microservices or a modular monolith? What most teams should start with

Why most products should start as a well-structured monolith, the signs that it is time to split out services, and how to do it without a risky rewrite.

EqualStack engineering teamSenior engineers3 min read

Microservices have a strong reputation: independent teams, independent deployments, independent scaling. They also bring network calls, distributed data, more infrastructure and harder debugging. For most products, especially early ones, a well-structured monolith delivers faster and costs less. Here is how we decide, and how to keep the door open for services later.

What we mean by each

  • Microservices: the system is split into many small services, each with its own codebase, database and deployment, talking over the network.
  • Monolith: one application, deployed as one unit, usually with one database.
  • Modular monolith: still one deployable application, but organised into clear modules with strict boundaries: each module owns its data and exposes a small public interface, and modules do not reach into each other's internals.

The modular monolith is the option teams often skip, and the one we recommend most.

Why start with a modular monolith

  • Faster to build and change. No network boundaries to design, no distributed transactions, simple local debugging.
  • Cheaper to run. One application, one database, one pipeline.
  • Easier to refactor. Moving a boundary inside one codebase is a code change; moving it between services is a migration.
  • You learn where the real boundaries are. Early on, nobody knows exactly how the domain will split. A modular monolith lets you discover that before you pay to make boundaries permanent.

The key word is modular. A monolith with no internal structure becomes hard to change, and that, not the monolith itself, is what gives monoliths a bad name.

When microservices make sense

Split out services when you have a concrete reason, such as:

  • Independent scaling. One part of the system, such as file processing, search or a public API, has very different load from the rest.
  • Independent teams. Several teams are blocked by each other's releases in one codebase, and clear ownership of separate services would speed them up.
  • Different technology needs. A component genuinely needs another language or runtime, for example a Python machine-learning service next to a .NET core system.
  • Isolation of risk. A part of the system must keep running even when another fails, or must meet separate compliance requirements.

If none of these apply, more services usually means more cost and complexity without a matching benefit.

Design the monolith so it can split later

  • Organise by business capability, such as billing, orders and accounts, not by technical layer.
  • Give each module its own data. Even in one database, keep each module's tables separate and never query another module's tables directly.
  • Communicate through interfaces or events. Modules call each other through small, explicit APIs, or publish events others subscribe to.
  • Enforce the boundaries automatically. Architecture tests that fail the build when one module reaches into another keep the structure honest as the team grows.

When a module later needs to become a service, most of the work is already done: its data, interface and responsibilities are already separate.

Moving an existing monolith towards services

If you already have a large, tangled monolith, avoid a big-bang rewrite. A gradual approach works better:

  1. Find a seam: a part of the system with clear responsibilities and a clear reason to stand alone.
  2. Put a routing layer in front, so traffic for that capability can be sent to new code.
  3. Build the new service alongside the old code, move traffic over gradually and keep both running until the new one is proven.
  4. Retire the old code for that capability, then repeat for the next seam.

We describe this approach in more detail in Modernising a .NET monolith without a big-bang rewrite.

Costs people underestimate with microservices

  • Observability: distributed tracing, central logging and monitoring become essential, not optional.
  • Data consistency: transactions across services need patterns such as sagas and events.
  • Local development: running many services on a laptop is slow and fiddly.
  • Operations: more pipelines, more deployments, more things to secure and update.

The short version

Start with a modular monolith: one deployable application with strict internal boundaries. Split out a service only when you have a concrete reason such as independent scaling, team independence, a different technology need or risk isolation. Design modules so that splitting later is a small step, not a rewrite.

See how we work with .NET developers and Node.js developers, or book a free 30-minute call to review your architecture.

Enjoyed this? Get a practical note twice a month.

Engineering lessons, case studies and guides like this one, from the senior team that wrote it.

No spam. Unsubscribe anytime.

Written by

EqualStack engineering team

Senior engineers

Written by the senior engineers who design, build and run our clients' products.

About us

Keep reading

Related articles

Engineering2 min read

Modernising a .NET monolith without a big-bang rewrite

How to move a legacy .NET application to modern .NET and services step by step, keeping the business running the whole time.

Engineering3 min read

Next.js or plain React for a B2B web app? How to choose

When a framework like Next.js is worth it, when a plain React single-page app is the simpler choice, and the questions that decide it for your product.

Engineering3 min read

React Native or Flutter? An honest comparison for product teams

How React Native and Flutter differ in practice, which one suits your team and product, and when building fully native apps is still the right call.

Have a project in mind?

Tell us what you're building. A senior engineer will reply within one business day with questions, ideas and next steps.