Building Production Software

Monolith vs Microservices: Which Should a Startup Choose?

Microservices solve problems of large organisations. Most new products do not have those problems yet. This guide compares the two designs, explains the middle option, and sets out when splitting a system is worth what it costs.

By Rahul D SarkerPublished November 17, 2026Updated November 17, 20265 min read

Part of our Building Production Software series. Start with Production-Grade Software: Engineering Practices That Prevent Technical Debt.

The Short Answer

What is the difference between a monolith and microservices?

A monolith is one application, built and deployed as a single unit, usually with one database. Microservices split the same system into many small services, each deployed separately, each owning its data, and talking to the others over a network. A monolith is simpler to build and run. Microservices let many teams release independently, at the price of much more operational work.

For a new product with a small team, start with a well-organised monolith. That is the advice of the people who popularised microservices. Martin Fowler’s MonolithFirst observes that almost every successful microservice system he had seen began as a monolith that grew too large, and that systems built as microservices from the first day often ran into serious trouble.

Read the transcript

In 2023, a team at Amazon Prime Video rebuilt one of its monitoring tools. It had been split into many small serverless parts. They merged it into a single process. The team reported that infrastructure cost fell by more than 90%. A monolith is one application, deployed as one unit. Microservices split it into many small services that talk over a network. So which should a new product start with? Splitting has a price. Every call can now fail. Data is spread across services. And someone has to run all of it. There is a middle option: a modular monolith. One deployment, with strict boundaries inside. Shopify runs this way. Split out a service only on a clear signal. Teams block each other on releases. One part needs very different scaling. Or one part must be isolated for security. A team of five doesn’t need to deploy independently of itself. Start with a well-organised monolith. The full guide is free at loomstrat.com.

What Each One Is

Fowler and James Lewis’s 2014 article, Microservices, gave the style its accepted description: a set of small services, each running in its own process, built around a business capability, deployed independently by automated machinery, with little central management. The important words are “deployed independently”. If services must be released together, you have the costs of microservices without the benefit.

A monolith does not mean a mess. It means one deployable unit. Inside, the code can and should be divided into clear modules with rules about what may call what.

Side by Side

Monolith and microservices compared
MonolithMicroservices
DeploymentOne unit; one pipelineMany units; many pipelines
Calls between partsIn-process function callsNetwork calls that can fail or be slow
DataOne database; simple transactionsA database per service; consistency across them is hard
Local developmentRun one programRun or simulate many services
DebuggingOne log, one stack traceNeeds distributed tracing
ScalingScale the whole applicationScale each service separately
Team fitOne to a few teamsMany teams that need to release independently
Operational skill neededModestHigh: orchestration, service discovery, monitoring
Cost to startLowHigh

What Microservices Really Cost

  • A network between everything. A function call that could not fail becomes a request that can time out. Every caller needs retries, timeouts and a plan for partial failure.
  • Data spread across services. An operation that was one database transaction becomes a sequence of messages that must be reconciled when one step fails.
  • Infrastructure. Container orchestration, a deployment pipeline per service, central logging, tracing and alerting. Someone has to run all of it.
  • Wrong boundaries are expensive. Moving a responsibility between modules in a monolith is a refactor. Moving it between services is a migration.
  • Slower early delivery. A feature that touches three services needs three coordinated changes.

Even large companies reverse course. In 2023 Amazon’s Prime Video team described moving its audio and video monitoring tool from a set of serverless components to a single process, and reported that this cut infrastructure cost by more than 90 per cent. The rest of Prime Video still uses services. The lesson is narrow and useful: splitting a system adds cost, and it should be done where it pays.

The Middle Option: A Modular Monolith

A modular monolith is one deployable application divided internally into modules with enforced boundaries. Each module owns its tables and exposes a small interface. Other modules may use the interface and nothing else. You keep one deployment, one database and simple debugging, and you gain most of the organisational clarity of services.

Shopify is the best-known example. Its engineering team described keeping its large Rails application as one unit while dividing it into components with strict boundaries, in preference to breaking it into microservices. A modular monolith also makes a later split far easier, because the seams already exist.

When to Split

Signals for extracting a service
SignalWhy it justifies a separate service
Many teams block each other on releasesIndependent deployment removes the queue
One part needs very different scalingFor example, video processing next to a simple admin screen
One part needs a different technologyFor example, a machine-learning component in Python beside a TypeScript application
One part must be isolated for security or complianceFor example, the component that handles card data
One part fails often and takes the rest downIsolation limits the damage

Without one of these signals, splitting is cost with no return. Team size is the most reliable guide. A team of five does not need independent deployment from itself.

How to Split Safely

  1. 1

    Draw the boundaries inside the monolith first

    Make the module a clean unit with its own tables and interface while it is still in the same codebase.

  2. 2

    Extract one service

    Choose the part with the clearest signal and the fewest connections.

  3. 3

    Route traffic gradually

    Send a small share of requests to the new service, compare results, then increase. This is the strangler fig pattern.

  4. 4

    Move the data last and carefully

    Give the service its own database only once the interface is stable.

  5. 5

    Invest in observability before the second service

    Central logs, tracing and alerts. Without them, faults across services are very hard to find.

  6. 6

    Stop when the signal is gone

    A monolith with two or three services around it is a perfectly good final state.

What This Means When You Hire a Builder

If an agency proposes microservices for a first product, ask which of the signals above applies. Common wrong answers are “it scales better” and “it is modern”. A first product needs to reach users and change quickly, and a monolith does both better. Our guides to choosing a tech stack and questions to ask a software development company cover the wider conversation. For a view on your own system, ask us.

Frequently Asked Questions

Are microservices better than a monolith?

Not in general. Microservices help large organisations with many teams release independently. For small teams they add cost and slow delivery.

Should a startup use microservices?

Usually not. Start with a well-structured monolith and extract services only when team size, scaling or isolation needs make it worthwhile.

What is a modular monolith?

A single deployable application divided into internal modules with strict boundaries. It keeps operations simple while keeping the code organised.

Can a monolith scale?

Yes. A monolith can run on many servers behind a load balancer. Shopify and many other large products run on monoliths.

When should you move from a monolith to microservices?

When several teams block each other, when one part needs different scaling or technology, or when a part must be isolated for security.

Is serverless the same as microservices?

No. Serverless is a way of running code without managing servers. It can host a monolith or many small services.

Have a build brief already forming in your head?

Loomstrat Studio scopes, builds, and hands over production software in 3–6 weeks - fixed price, 100% repository ownership.

  • Reply within 24 hours
  • Fixed price before we start
  • Zero technical debt guarantee