Contents
Microservices vs. monolith is the architecture question that comes up as soon as an app grows beyond its MVP. For most projects a well-structured modular monolith is the better starting point, while microservices only play to their strengths with several independent teams and very different load profiles. This article explains the differences, typical wrong turns and criteria for the right moment to change.
The architectures in brief
Monolith: the entire backend is one application that is built, tested and deployed as a unit. All features – user management, orders, notifications – share one codebase and usually one database.
Microservices: the backend consists of many small, independent services, each handling one business capability, managing its own data and being deployed independently. They communicate via network interfaces or messages.
Modular monolith: a single application divided internally into clearly separated modules with defined interfaces. Modules do not reach into each other's data. This approach combines the simplicity of a monolith with a structure from which individual services can be extracted later.
Pros and cons side by side
| Criterion | Monolith / modular monolith | Microservices |
|---|---|---|
| Speed of getting started | Fast, little infrastructure | Slower, a lot of scaffolding required |
| Operational effort | Low: one application, one deployment | High: orchestration, service discovery, distributed monitoring |
| Scaling | The whole application scales – sufficient for most apps | Individual services can be scaled selectively |
| Team organisation | Ideal for one or a few teams | Lets many teams work independently |
| Debugging | Simple, everything in one process | Demanding, distributed tracing required |
| Data consistency | Transactions within one database | Eventual consistency, sagas, more complexity |
| Technology diversity | One technology stack | Choice per service – both an advantage and a risk |
| Resilience | One fault can affect the whole application | Faults can be isolated if implemented properly |
| Cost | Lower in development and operations | Higher; pays off only beyond a certain size |
Why microservices come too early for many apps
Microservices answer an organisational problem of large companies: many teams need to develop and ship independently. For a start-up with three developers or a mid-sized company's app with moderate user numbers, they mostly add cost:
- Distributed complexity: network calls can fail, be slow or arrive out of order, and this has to be handled everywhere.
- Badly cut services: if you don't yet know the business domain well, you draw boundaries in the wrong places. The result is a "distributed monolith" in which every change affects several services at once.
- Infrastructure overhead: container orchestration, API gateway, central logging and tracing absorb time that is then missing for features.
- Higher running costs: more services mean more resources, more pipelines and more maintenance.
For MVPs and apps of simple to medium complexity – typically budgets between 5,000 and 50,000 € – a modular monolith is almost always the more economical choice. With containers and a managed database it can already scale a long way, as shown in scalability: how your app grows with its users.
When microservices make sense
There are good reasons to run parts of a system as separate services. Look for these signals:
- Teams block each other: releases are delayed because many teams work on the same codebase and must coordinate.
- Very different load profiles: image processing or a search index needs very different resources from the rest of the application.
- Different security or availability requirements: a payment module should be isolated and audited more strictly.
- Technology reasons: an AI component may be better implemented in Python than in the rest of the stack.
- Clearly stable domain boundaries: the domain is well understood and interfaces rarely change.
If only one or two of these apply, extracting individual components – such as a worker for background jobs – is usually enough, rather than changing the whole architecture.
Step by step: from monolith to services
A later migration works best incrementally, following the strangler fig pattern: new or extracted features run as a separate service while the rest stays in the monolith.
- Separate modules inside the monolith: make domain boundaries visible in the code and remove cross-module database access.
- Choose candidates: start with the module that brings the most benefit and is least entangled.
- Define the interface: agree on a clear API or events between monolith and new service. See API design for mobile apps for guidance.
- Migrate data: the new service gets its own data; plan transition phases with synchronisation carefully.
- Build observability: central logging, metrics and distributed tracing before more services follow.
- Automate delivery: each service needs its own reliable pipeline – see automating app releases with CI/CD.
AI-assisted development helps noticeably with such migrations: coding agents can analyse dependencies, extract modules and add tests. Architecture decisions and reviews, however, remain the job of experienced developers.
What this means for the app itself
Ideally, the backend architecture is invisible to the mobile app. To keep it that way, the app shouldn't talk directly to many individual services but go through an API gateway or a backend for frontend. That lets you restructure behind the scenes without breaking old app versions in the stores. Backend-as-a-service platforms are also an option when little custom business logic is required; see our comparison of Firebase, Supabase or your own server.
Agentic coding workshop for your team? From €799 net – request a quote by e-mailConclusion
Microservices vs. monolith is less a technical question than an organisational one. Start with a modular monolith, keep domain boundaries clean and extract services only when team size, load or security requirements clearly justify it. That keeps development and operations affordable without closing off future options. For an assessment of your architecture and a fixed-price quote, use our offer wizard.
Frequently Asked Questions
Is a monolith outdated?
No. A well-structured modular monolith is the most efficient architecture for many applications and can scale a long way with modern cloud services.
When are microservices worth it?
Typically when several teams must ship independently, individual components have very different loads or need stricter isolation. They rarely pay off for MVPs and small teams.
What is a modular monolith?
A single application organised internally into domain-specific modules with clear interfaces. Individual modules can later be extracted as separate services with manageable effort.
Can a monolith be converted into microservices later?
Yes, ideally step by step using the strangler fig pattern. The prerequisite is that domain boundaries are already cleanly separated in the code.