Short answer: if your team has fewer than about 30 engineers and ships on a weekly rhythm, start with a modular monolith. Move to microservices only when independent deployment is blocking real teams, not because the architecture looks modern.
Few debates in enterprise engineering are as loaded as microservices vs monolith. One side treats microservices as the only serious option for scale. The other swears that every distributed system is a mistake waiting to happen. Both are wrong often enough to cost real money.
This guide is written for CTOs and architects who have to decide, then live with the decision. We explain what is microservices architecture, walk through the architecture of microservices, define the modular monolith, what each really costs to run, and how to choose based on your team rather than the trend.
What is microservices architecture?
So, what is microservices architecture in plain terms? It is a way of building an application as a set of small services. Each service owns one business capability, such as billing or inventory, runs as its own deployable unit, and keeps its own data. Services talk to each other through APIs or events.
The appeal is real. Teams can deploy without waiting for each other, scale the busy parts independently, pick different technologies where it helps, and contain failures. The catch is that every call that used to be a function call is now a network call, and that single change creates most of the cost.
Still wondering what is microservices architecture in practice? Think of it as a set of small companies that share one product: each is free to move fast, but they must agree on contracts and pay for coordination.
The architecture of microservices: what you actually sign up for
When people praise microservices, they describe the services. When teams struggle, it is usually the rest of the architecture of microservices that hurts. A working setup typically needs:
- An API gateway to route, authenticate and rate limit incoming traffic.
- Service discovery so services can find each other as instances come and go.
- One datastore per service, which means no easy joins and no single transaction across services.
- Messaging or event infrastructure for asynchronous work.
- A pipeline per service for build, test, deploy and rollback.
- Distributed tracing, logging and metrics to follow a single request across many services.
None of this is optional at scale, and each piece must be secured, monitored and staffed. That is the operational cost of microservices, and it is paid every month, not once.
What is a modular monolith?
A modular monolith is a single deployable application whose insides are split into strict modules. Each module owns a business capability, hides its internals, and exposes a narrow interface to the others. It also owns its tables, so other modules cannot reach into them directly.
The idea is to get the main benefit people want from microservices, clear boundaries and team ownership, without the network. A modular monolith deploys as one unit, debugs with one stack trace, and can use a single database transaction when a business rule spans two modules. When a module later needs to become a service, the boundary is already drawn.
Microservices vs monolith: a side by side comparison
| Factor | Modular monolith | Microservices |
|---|---|---|
| Deployment | One unit, simple rollback | Many units, independent releases |
| Team autonomy | Shared release, clear module owners | High, each team ships alone |
| Operational cost | Low | High: platform, tooling, on-call |
| Data consistency | Simple transactions | Eventual consistency, sagas |
| Debugging | One process, one trace | Distributed tracing required |
| Scaling | Scale the whole app | Scale each service separately |
| Best fit | Small to mid-sized teams, evolving domains | Many teams, stable domains, mature platform |
Read the table as a map of trade-offs, not a scorecard: the architecture of microservices wins on autonomy and loses on cost, while a modular monolith does the opposite.
When to use microservices
If you are asking when to use microservices, look for these signals rather than the size of your ambition:
- Several teams are regularly blocked by a shared release process.
- One part of the system has very different scaling or availability needs from the rest.
- Regulation or security requires strict isolation of certain data or workloads.
- Domain boundaries have stayed stable for long enough that you trust them.
- You already have the platform: automated pipelines, tracing, on-call, and service ownership, plus the experience to apply microservices patterns safely.
Microservices vs monolith for startups
For early products, the answer is almost always a monolith, ideally a modular one. Your domain is still changing, your team is small, and every hour spent on service plumbing is an hour not spent finding product fit. Boundaries drawn too early are expensive to move across services and cheap to move inside one codebase.
When a modular monolith is the better call
A modular monolith wins when the real problem is messy code, not independent deployment. If your pain is that nobody knows where logic lives, modules fix that. If your pain is that releases are slow because tests take hours, better pipelines fix that. Neither needs a network between your components.
It also wins on cost. One deployment, one database to back up, and one place to look when something breaks means a smaller team can run it well. For most organizations under about 30 engineers, the modular monolith is the lowest risk path that still keeps future options open.
Microservices patterns that quietly add cost
Many articles list microservices patterns as if they were free upgrades. They are answers to problems that only exist once you have split the system. Adopt each one when you feel the problem, not before.
- API gateway: useful for routing and security, but it becomes a critical component you must scale and secure.
- Saga pattern: replaces a simple database transaction with a chain of steps and compensating actions that you must design and test.
- Circuit breaker: protects callers from failing services, and needs tuning and monitoring to avoid hiding real faults.
- Service discovery and mesh: solve routing between services, and add another layer to learn and operate.
A useful test: if you cannot name the incident that justifies a pattern, you probably do not need it yet.
Monolith to microservices migration: go gradually
If you do need to split, avoid the big rewrite. A safer monolith to microservices migration follows four steps:
- Make the monolith modular first, with enforced boundaries and separate data ownership.
- Pick one module with a clear scaling or deployment reason to leave.
- Extract it behind the existing interface, route traffic to it slowly, and keep a rollback path.
- Measure delivery speed and incident rates before extracting the next one.
This is often called the strangler approach. Each step is reversible, which is exactly what a big rewrite is not. Resist adding microservices patterns during the move itself, and introduce them only when a real incident calls for them.
What experts and real teams report
Martin Fowler has long argued for a monolith first approach: learn where the boundaries belong in one codebase, then split when you understand the domain.
Shopify engineers described how they organized a very large Rails codebase into components with enforced boundaries instead of splitting it into services.
The Amazon Prime Video team reported moving one video monitoring workload from a distributed design to a single process, and cited a large drop in infrastructure cost.
The pattern across these examples is consistent: boundaries matter more than the deployment model, and teams save money when they match architecture to need.
Frequently asked questions
What is microservices architecture in simple terms?
It is a way of building software as many small services, each owning one business capability and its own data, deployed independently and connected through APIs or events.
Is a modular monolith better than microservices?
For small and mid-sized teams with changing domains, usually yes. You get clean boundaries without the network, tooling and on-call cost of microservices.
How many developers do you need for microservices?
There is no fixed number. As a rule of thumb, microservices begin to pay off when several teams, often 30 or more engineers, are blocked by a shared release process and you have a platform to support them.
Can you move from a monolith to microservices later?
Yes, and a modular monolith makes it easier. Extract one service at a time where independent scaling or deployment is proven necessary.
The takeaway
The microservices vs monolith question is really a question about your teams, your domain and your operational maturity. Start by drawing clean boundaries. Keep them inside a modular monolith until a specific, measurable reason says otherwise, then extract only what you must. Treat the architecture of microservices as a response to proven friction, and add microservices patterns such as sagas or gateways only when the problem is real.
Need an unbiased view of your own system? The iAastha engineering team reviews architecture for enterprise and fintech teams and will tell you plainly when not to split.