"Should we move to microservices?" is usually asked when something hurts: deploys are slow, a change in one corner breaks another, the team has doubled and people step on each other. Those are real problems. The trouble is that microservices solve only some of them, and they introduce a set of distributed-systems problems that a growing product did not have before.

This is a comparison with both sides given their honest wins. Our position, up front: for most growing products, a well-bounded monolith is the right architecture for longer than people expect, and the move to services should be triggered by specific organisational signals rather than by size, fashion or code quality.

Microservices are an answer to a coordination problem between teams. If your problem is not coordination, they are an expensive way to keep it.

What You Are Actually Choosing Between

The question is usually framed as two options. In practice there are three, and the middle one is where most good systems spend their growth years:

Tangled monolithModular monolithMicroservices
Deploy unitOneOneMany, independently
Data ownershipEvery part reads every tableEach module owns its tables; others go through its interfaceEach service owns its database
Cross-boundary callA function call, anywhereA function call, only through a published interfaceA network call, with latency and partial failure
ConsistencyDatabase transactionsDatabase transactionsEventual consistency, sagas, compensations
Refactoring a boundaryEasy, which is why there are noneEasy, with tooling to keep boundaries honestA coordinated, versioned migration across services
Operational loadLowLowHigh: tracing, service discovery, per-service pipelines and alerting

The common mistake is comparing the tangled monolith you have against the clean microservices you imagine. The fair comparison is a modular monolith against microservices, both built with discipline. Against that baseline, the case for services narrows considerably.

Where the Monolith Wins Outright

A monolith is not a compromise you tolerate until you can afford better. For a product with one or a few teams, it is better at most things that matter day to day:

  • Transactions are free. Creating an order, reserving stock and writing the ledger entry is one database transaction that either happens or does not. Across services, the same operation becomes a saga with compensating actions for every step.
  • Refactoring is cheap. Moving a responsibility from one module to another is a rename and a test run. Across services, it is an API version, a migration plan and a deploy sequence.
  • Debugging has a stack trace. One process, one log stream, one profiler. Distributed tracing exists to rebuild the visibility a monolith gives you by default.
  • It scales further than its reputation. A stateless monolith runs behind a load balancer on as many instances as you need. Most products hit database limits long before they hit application-server limits, and splitting the code does not split the database load by itself.
  • One deploy is a feature. Every change ships with every change it depends on. There is no compatibility matrix between service versions.

Even a single codebase can run in several roles. The same monolith deployed as web servers, queue workers and a scheduler, each scaled independently, gives much of the operational flexibility people go to microservices for. A multi-tenant SaaS product can serve a large customer base this way; we describe one such shape in our multi-tenant Laravel architecture article.

Where Services Earn Their Overhead

Microservices are a real tool with real win conditions. When one of these applies, the overhead is the price of something worth having:

  • Many teams need independent release cadences. When several teams share one deployment pipeline, releases queue behind each other and one team's broken test blocks everyone. Separate services let each team ship on its own schedule. This is the strongest argument, and it is organisational, not technical.
  • A component has a radically different runtime profile. Video transcoding, document rendering or model inference need different hardware, memory or scaling behaviour from a request-response web app. Isolating them lets each scale on its own terms.
  • A different language is genuinely needed. A Python machine-learning pipeline beside a PHP or Node.js application is a natural service boundary; forcing one runtime would be worse.
  • Compliance scope can be reduced. Keeping card data or other regulated data inside one small, separately deployed service can shrink the part of the system an audit has to cover.
  • A risky dependency needs a blast radius. A component that calls an unreliable third party, or that runs untrusted input, can fail without taking the core product down.

The Costs That Arrive the Week You Split

Every capability a monolith gave you for free has to be rebuilt deliberately once a boundary becomes a network hop:

ConcernIn a monolithAcross services
A multi-step writeOne transactionA saga, with a compensating action per step (we cover the pattern in our workflow engines reference)
Reading related dataA joinAPI composition, or copies of data kept in sync by events
Publishing a change reliablyCommit the transactionAn outbox table or change-data capture, so the event and the write cannot disagree
Finding a bugA stack traceCorrelation ids and distributed tracing across every hop
Changing an interfaceEdit the caller and callee togetherVersion the contract, support old and new, retire the old one later
TestingOne suiteUnit, contract and end-to-end tests, plus environments that run many services
A slow dependencyA slow functionTimeouts, retries, circuit breakers and idempotency on every call

None of these is difficult on its own. Together they are a permanent platform tax, and a team of eight paying it is a team of eight shipping less product.

Growth Signals That Justify a Split, and Ones That Don't

When the question comes up, name the actual symptom and check it against this list before choosing an architecture:

SymptomDoes it justify services?Try first
Several teams block each other's releases dailyYes, for the parts those teams ownModular boundaries plus trunk-based development; extract once ownership is clear
One workload needs very different scalingOften, for that workload onlyRun it as a separate worker role of the same codebase
A reporting query slows down checkoutNoMove reporting to a read replica or analytical store
The codebase is a messNo; a messy monolith becomes a messy distributed systemDraw module boundaries inside the monolith and enforce them
Deploys take an hourRarelyFix the pipeline: parallel tests, incremental builds, smaller migrations
A component needs another languageYesMake it a service with a narrow, versioned interface
"It will be needed at scale"Not yetKeep boundaries clean so extraction stays cheap when the need is real

The Modular Monolith Is the Migration Path, Not a Compromise

Whatever you decide about services, the next step is almost always the same: turn the tangled monolith into a modular one. It is valuable on its own, and it is the precondition for every safe extraction later.

Inside one deployable, the orders module owns its tables and publishes an Order placed event; the billing and notifications modules react to it. A boundary check in the build keeps modules out of each other's internals, and the notifications module is later extracted into a service behind a facade and an outbox.
Modules react to in-process events, so extracting one later changes the transport, not the design.

A module boundary is real when these rules hold:

  1. Each module owns its tables. No other module reads or writes them directly. This is the hardest rule and the one that matters most, because shared tables are what make services impossible to extract later.
  2. Modules talk through a published interface: a small set of public classes or functions, with everything else internal.
  3. Side effects travel as in-process events. "Order placed" is published; billing and notifications react. Moving a listener into another service later changes the transport, not the design.
  4. The rules are checked by a tool, not by memory. Deptrac for PHP, ArchUnit or Spring Modulith for Java, dependency-cruiser or Nx module boundaries for JavaScript and TypeScript all fail the build when one module reaches into another's internals.

Teams that do this well often discover they no longer need services. The problems they attributed to "the monolith" came from missing boundaries, and the boundaries fixed them.

Extracting a Service Without Stopping the Product

When a split is justified, extract one service at a time while the product keeps running. This is the strangler-fig approach, and its order matters:

  1. Choose a seam with clear data ownership, usually a module that already passes the four rules above. Notifications, search indexing, document generation and billing integration are common first candidates because they mostly consume events and own little shared data.
  2. Route through a facade. Callers use an interface inside the monolith; at first it calls the in-process module, later it calls the service. Callers never change.
  3. Move the data before the code. Give the module its own schema, remove every outside reader, then move that schema to its own database. Untangling a shared database is the hard part of every extraction, and the reason our modernization playbook treats it as its own phase.
  4. Publish changes through an outbox. Write the business change and an event row in the same transaction; a relay delivers events to the broker. Writing to the database and the broker separately will eventually leave them disagreeing.
  5. Shadow, then cut over. Run the new service alongside the old path, compare results, then switch traffic, ideally per tenant or per percentage.
  6. Delete the old path. An extraction that leaves both implementations alive has doubled the code it set out to simplify.

The Road Back Is Also Allowed

Architectures move in both directions. Some teams that split early later consolidate services into fewer, larger ones, and that is a sound engineering decision, not a defeat. The signals are recognisable:

  • Several services always deploy together, because a change to one needs a change to the others. That is a distributed monolith: all the coupling, plus the network.
  • One request fans out into a long chain of synchronous calls between services that one team owns.
  • There are more services than engineers who understand them.

Merging those back into one deployable unit with clean internal modules usually removes latency, failure modes and operational work at once.

The architecture that serves a growing product is the one its team can change quickly and operate calmly on its worst day. Getting that call right, and sequencing the moves, is a core part of our custom software development work. If you are weighing a split, or a consolidation, book an architecture conversation with us.

Frequently Asked Questions

Should a growing product use microservices or a monolith?

For most growing products, a well-bounded modular monolith is the right architecture for longer than people expect. It keeps database transactions, cheap refactoring, stack traces and a single deploy, and it scales further than its reputation by running as many stateless instances as needed. The move to services should be triggered by specific team-coordination signals, not by size, fashion or code quality.

What is a modular monolith?

A modular monolith is a single deployable application divided into modules with real boundaries. Each module owns its tables, other modules reach it only through a published interface, side effects travel as in-process events, and a tool such as Deptrac, ArchUnit or dependency-cruiser fails the build when one module reaches into another's internals. It is also the safest path to extracting services later.

When do microservices actually make sense?

Microservices earn their overhead when several teams need independent release cadences, when a component has a radically different runtime profile such as video transcoding or model inference, when a different language is genuinely needed, when isolating regulated data can reduce compliance scope, or when a risky dependency needs its own blast radius. Independent releases for many teams are the strongest argument.

What are the hidden costs of microservices?

Every capability a monolith provides for free must be rebuilt once a boundary becomes a network hop. Multi-step writes become sagas with compensating actions, joins become API composition or synced copies, reliable events need an outbox or change-data capture, debugging needs distributed tracing, interfaces need versioning, and every call needs timeouts, retries, circuit breakers and idempotency. Together that is a permanent platform tax.

How do you move from a monolith to microservices without stopping the product?

Use the strangler-fig approach and extract one service at a time while the product keeps running. Choose a seam with clear data ownership, route callers through a facade, move the data before the code, publish changes through an outbox, shadow the new service before cutting traffic over, and then delete the old path so two implementations do not stay alive.

Sources