Monolith vs microservices: what startups and growing teams should actually build

Monolith, modular monolith and microservices compared on speed, cost, reliability and team size, with signs it's time to split and how.

INDI TECHNOLOGY4 min read

Microservices were the default advice for most of the 2010s. Since then, many teams (including some well-known ones) have publicly moved services back into larger units, because the operational cost was higher than the benefit. The current consensus is more balanced: start with a well-structured monolith, and split out services when there's a specific reason.

The three options

Monolith Modular monolith Microservices
Deploy units One One Many
Codebase structure Often tangled over time Clear internal modules with enforced boundaries Separate services, separate repos or packages
Database Shared Shared database, module-owned tables One per service (ideally)
Team size it suits 1–15 engineers 5–50 engineers 30+ engineers, many teams
Speed early on Fastest Fast Slowest
Operational cost Lowest Low High: deployment, observability, networking, on-call
Independent scaling No No (scale the whole app) Yes
Fault isolation Low Low to moderate High (if designed well)
Data consistency Simple transactions Simple transactions Distributed: sagas, outbox, eventual consistency

Why monoliths win early

In the first years of a product, the biggest risk is building the wrong thing. You need to change things quickly: add fields, rename concepts, move logic around. In a monolith:

  • one change touches one codebase, one test suite, one deploy
  • database transactions keep data consistent without extra patterns
  • debugging is a stack trace, not a distributed trace across ten services
  • infrastructure is simple and cheap

With microservices, every cross-cutting change means coordinated releases, API versioning and distributed data problems, and you need tracing, service discovery, retries, circuit breakers and per-service pipelines before you've found product-market fit.

The modular monolith: the best of both early on

A modular monolith is a single deployable application organised into strict internal modules, such as accounts, payments, lending and notifications. Each module:

  • owns its data (its own tables or schema), which other modules don't query directly
  • exposes a clear internal interface
  • has boundaries enforced by tooling (package visibility, lint rules, architecture tests)

You get most of the design benefits of microservices (clear ownership, separable domains) without the operational cost. And when a module needs to become a service, the boundary already exists.

When microservices are worth it

Split a module into a service when there's a concrete reason, such as:

  • Independent scaling: one part needs very different resources, such as a document-processing or ML inference workload
  • Different reliability or compliance requirements: the payment core or card data environment should be isolated (this also reduces PCI scope)
  • Team autonomy: several teams are blocked by each other's release cycles
  • Different technology: a Python ML service alongside a TypeScript product API
  • Fault isolation: a failure in one area (say, notifications) mustn't take down checkout

"It will scale better" is not a reason on its own. A monolith on modern cloud infrastructure can serve very large traffic, and most early scaling problems are in the database.

The costs teams underestimate

  • Distributed data: no more cross-service transactions. You'll need the outbox pattern, idempotent consumers, sagas and reconciliation.
  • Observability: distributed tracing, correlated logs and per-service dashboards are mandatory.
  • Testing: contract tests between services, plus realistic integration environments.
  • Platform work: CI/CD per service, service mesh or networking policies, secrets, configuration and on-call for each service.
  • Latency: each network hop adds time and failure modes.

A rough guide: if you don't have at least one engineer's worth of time for platform and operations work, you're not ready for many microservices.

Choose a modular monolith if…

  • you're pre-product-market fit or have fewer than about 30 engineers
  • domains are still changing
  • you want the lowest operating cost and fastest change

Choose microservices if…

  • multiple teams are slowed down by a shared codebase and release cycle
  • specific components need independent scaling, isolation or technology
  • you have the platform skills and tooling to run them well

Recommendation by stage

Stage Architecture
MVP to first paying customers Modular monolith
Growing product, one or two teams Modular monolith, perhaps one or two extracted services (e.g. ML, file processing)
Several product teams, clear domains Modular monolith core plus services for isolated domains
Large organisation, many teams Microservices with a strong platform team

How to split safely

  1. Find the seam: a module with clear data ownership and few inbound calls.
  2. Stop shared table access first, inside the monolith.
  3. Introduce an interface (internal API or events) that the rest of the app uses.
  4. Move the module behind that interface into a service, with its own database.
  5. Use the outbox pattern for events, and idempotent consumers.
  6. Run both paths briefly and compare results before switching fully.

This is the same incremental approach we describe in modernising legacy software without a rewrite.

Summary

Start with a modular monolith: clear module boundaries, one deployable app, one database with module-owned tables. Extract services when scaling, isolation or team independence clearly justifies the extra operational cost.

We design architectures that fit a product's stage, and split monoliths safely, through our product engineering and technology transformation work. Talk to us about yours.

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call