Which problem would splitting the application solve?
Slow releases and tightly coupled modules can make microservices appealing. Separating a service may let a team deploy independently, but it also introduces network calls, distributed failures and additional infrastructure.
Before choosing, identify the specific constraint: deployment coordination, uneven load or unclear ownership. Compare the cost of extracting a service with improving the boundaries inside the application.
What you are really choosing between
Strip away the diagrams and the choice is about where complexity lives.
In a monolith, the whole application is built, tested and deployed as one unit. Modules call each other as functions. A transaction can span the whole system. One log file tells you what happened.
In microservices, the application is split into independently deployed services that talk over the network. Each service owns its data. Each can be released, scaled and rewritten on its own.
Neither is more modern. They put the hard parts in different places. A monolith concentrates complexity in the code. Microservices push it into the network, the deployment pipeline and the organization.
Deployment, failures and operating costs
Deployment
A monolith has one pipeline. That is simple until the build takes forty minutes and every team waits for every other team's tests. Microservices let each team ship on its own schedule, but now you need versioned contracts between services, a way to roll out changes that touch several of them, and a clear answer to what happens when service A is updated and service B is not.
Team size and ownership
This is the trade-off that matters most and gets discussed least. With one or two small teams, a monolith is almost always faster. Everyone can read the whole codebase, and coordination happens in a standup. Once you have several teams that keep stepping on each other's code, blocking each other's releases and arguing about shared tables, independent services start to earn their keep. Microservices are first an answer to an organizational problem.
Data consistency
Inside a monolith, a database transaction either commits or it does not. Split the data across services and that guarantee is gone. An order service and a payment service now have to agree through events, retries and compensating actions. This is solvable, but it is real engineering work, and it tends to surface in the parts of the business where mistakes cost money.
Operational overhead
Every service needs its own deployment, monitoring, alerting, logging, secrets, scaling rules and on-call ownership. Ten services means ten of each, plus the infrastructure that ties them together. Teams often underestimate this by a wide margin because the first two services feel cheap.
Running cost
A monolith usually runs on a handful of servers or containers. A service-based system adds a broker, a gateway, per-service databases and the monitoring stack to watch them. None of that is expensive on its own, but together it often costs more than the application itself, especially at low traffic. For an early product, that money and attention is usually better spent on features.
Debugging
In a monolith, a stack trace usually tells the story. In a distributed system, one user request can pass through five services, two queues and a cache. Without distributed tracing and correlated logs, finding why an order got stuck becomes detective work. Plan for observability before the first split, not after the first incident.
The middle path most teams should take
The option that rarely makes it onto the whiteboard is the modular monolith: one deployable application, but with internal modules that have strict boundaries.
In practice that means:
- Each module owns its tables, and other modules never query them directly.
- Modules talk to each other through a small, explicit interface, not by reaching into each other's internals.
- Dependencies point one way, and a check in the build fails if someone breaks the rule.
- Each module has a clear owner, even if everything ships together.
You keep the single deployment, the simple transactions and the readable stack traces. You also get most of the clarity people hope microservices will bring. And if one module later needs to become a service, the boundary already exists. Extraction becomes a planned migration rather than an archaeology project.
Many products that "need microservices" really need this. Their real problem is a tangle of modules that know too much about each other, and splitting a tangle across the network only makes the tangle slower.
Signals that justify extracting a service
Splitting is worth it when a specific part of the system has needs the rest does not share. Good reasons include:
- A different scaling profile. Image processing, search indexing or a public API that gets heavy traffic while the admin panel stays quiet.
- A different release cadence. A pricing engine the business wants to change daily, inside a product that otherwise ships weekly.
- A different owner. A team that should be able to deploy without waiting on anyone else.
- Different reliability or compliance needs. A payment component that must be isolated, audited and kept to a minimal surface.
- A different technology. An AI or data processing workload that belongs in another language or runtime.
Weak reasons include "the codebase is big", "microservices are what serious companies use" and "the new architect prefers them". Size alone is a code organization problem, and code organization has cheaper fixes.
Team structure drives the result
There is an old observation, usually called Conway's law, that systems end up mirroring the communication structure of the organization that builds them. It holds up remarkably well.
If three teams share one codebase without clear module ownership, you will get a monolith with three overlapping styles and constant merge conflicts. If one small team runs eight services, you will get eight services that change together and are deployed together, which is a monolith with network calls added.
So decide the team shape first. Who owns what? Which teams need to ship independently? Then draw the boundaries in the code to match. The architecture will follow the org chart anyway, so it is better to plan it.
Splitting later without a rewrite
Choosing a monolith today does not lock you in. If the modules have clean boundaries, extracting one later follows a predictable path. First, put the module behind its own interface inside the monolith, so nothing else touches its internals. Second, give it its own data and stop other modules from reading those tables. Third, run the new service in parallel, compare its results with the old code path, and switch traffic over gradually. The old module is deleted only when the new service has carried production load for a while.
Teams that skip the first two steps and go straight to a new service end up with a distributed system that still shares a database, which combines the downsides of both approaches.
A decision checklist
Before you split anything, answer these honestly:
- How many teams work on the product today, and how many will in a year?
- Do teams regularly block each other's releases, or is the pain somewhere else?
- Can you name a part of the system with a clearly different scaling, release or ownership need?
- Do you have centralized logging, tracing and alerting good enough to debug a request across several services?
- Who will be on call for each new service at three in the morning?
- Have you tried enforcing module boundaries inside the monolith first?
If you answered "one or two teams", "the pain is elsewhere" and "not yet" to the first three, a modular monolith is almost certainly the better next step. If several teams are fighting over the same code and you can point to a component with genuinely different needs, extracting that one component is a reasonable experiment.
Measure the problem before splitting
Pick the module that causes the most incidents or the most merge conflicts and map what it touches: which tables it reads, which other modules call it, who changes it. If that map is a mess, start by drawing a boundary inside the monolith and enforcing it. If it is already clean and has its own scaling or release needs, it is your first extraction candidate.
For a stack-specific version of this, our piece on scaling a Laravel monolith before splitting it walks through the fixes that usually come first. We use this kind of dependency map in our architecture and scalability reviews.


