# Monolith vs microservices vs cell-based architecture: which one, when?

By Vishal Kumar · Published 2026-05-12 · Updated 2026-11-13
Source: https://fungyaan.com/p/monolith-microservices-cells
Tags: system-design, architecture, microservices, saas

**The verdict, which the case below earns:**
- **A modular monolith** (one deployable, with strict internal boundaries) is the right default for a new product and a small team.
- **Split out services** only for parts that need to scale, deploy or fail independently, or that a separate team owns.
- **Cells** (full copies of the stack, each serving a subset of customers) come later. They're the answer when a bad deploy, a noisy tenant or a regional outage must hurt only a fraction of customers, or when customers' data has to live in a particular region.

Each step buys isolation and pays for it in operations.

> **Case file**
>
> | | |
> |---|---|
> | **The case** | A deploy, a noisy tenant or a tangled release hurts everyone |
> | **Suspects** | "It's the monolith", "it's the microservices", "we need cells" |
> | **Culprit** | A shape that doesn't match the pain |
> | **The fix** | Modular monolith first, split on a reason, cells for blast radius |
> | **Evidence** | A tech-strategy one-pager and a multi-tenant reference repo |

## The case

A deploy goes out and the whole product goes down with it. Or one customer's runaway job slows everyone else. Or two teams spend a week untangling each other's releases. The usual suspects get rounded up fast: "it's the monolith", "it's the microservices", "we need cells like the big platforms".

There's no fashionable culprit here, only a fit. Each shape is a response to a specific kind of pain, and once you can name the pain, the choice almost makes itself. That's the satisfying part of this case.

## The three suspects side by side

Here's how they compare on the same terms:

| | Modular monolith | Microservices | Cell-based architecture |
|---|---|---|---|
| **Shape** | One deployable; modules with clear interfaces inside | Many services, each with its own deploy and usually its own data | The whole stack (or most of it) copied into independent cells; a thin router sends each customer to their cell |
| **Fixes** | Speed of change for a small team; one place to debug | Independent scaling, deploys and team ownership | Blast radius: a failure affects one cell's customers, not all; data residency; predictable scaling units |
| **Costs** | Everything scales and deploys together; boundaries erode without discipline | Network calls instead of function calls; distributed failures; data consistency across services; much more operations | Everything multiplied by the number of cells; a router and a control plane; moving customers between cells |
| **How it fails** | One bad change takes down everything; one hot module starves the rest | A slow dependency cascades; "distributed monolith" where every change touches five services | Cells drift apart in version or configuration; cross-cell features get awkward |
| **Pick it when** | New product, under ~10-15 engineers, one main domain | Parts with clearly different load, failure or ownership | Large multi-tenant SaaS with strict blast-radius, compliance or residency needs |

## Use case 1: an early-stage SaaS with 3-8 engineers

**What I'd use:** a modular monolith. One repository, one deployable, one database. But inside it:
- **modules by domain** (orders, billing, catalogue, users), each with a public interface and private internals;
- **no reaching into another module's tables**, enforced by code review, or by tooling that fails the build on forbidden imports;
- **asynchronous work behind a queue** from day one (emails, exports, integrations), so the request path stays fast. The [queue case](/p/queue-vs-api-writes) covers when.

This is the quiet strength of the modular monolith: a small team spends its time on the product instead of on service discovery, distributed tracing and cross-service data migrations. And here's what I admire about it. When a module does need to become a service, its boundary already exists: extracting it is a refactor, not a rewrite.

## Use case 2: several teams, and parts that behave differently

**The scene:** the product has grown. Document ingestion is CPU-heavy and spiky; the dashboard is read-heavy and latency-sensitive; billing changes rarely but must never break. Three teams step on each other's deploys.

**What I'd use:** split along those differences, and only those. This rule is the clue that cracks the case: it turns an architecture debate into a question you can answer from the system itself.
- **Separate what scales differently:** an ingestion worker fleet that scales on queue depth doesn't belong in the same process as the web API.
- **Separate what fails differently:** a crashing PDF parser must not take the API down with it.
- **Separate what a team owns end to end,** so that team can deploy without coordinating with everyone else.
- **Keep the rest together.** Microservices pay off per boundary, not per service count.

The costs to plan for: each service needs its own CI, deploys, dashboards, alerts and on-call. Data that used to be a `JOIN` becomes an API call or an event. Consistency across services needs patterns like the outbox (the [consistency case](/p/consistency-without-2pc) measures the options). A synchronous call chain is only as available as its weakest link, so prefer events for anything that doesn't need an immediate answer.

At Jio News, the backend serving about 5 million active users was built as microservices for real-time publishing and personalised feeds. That's a workload where publishing and feed reads have very different load patterns, which is exactly the kind of difference that justifies a split.

## Use case 3: multi-tenant SaaS where blast radius matters

**The scene:** a B2B platform where some customers are large and regulated. A bad deploy or one tenant's runaway job must not take everyone down, and some customers need their data in a specific region.

**What I'd use:** cells. The idea at heart is a beautiful inversion: instead of making one system that never fails, you make many small ones so that each failure stays small.
- Each **cell** is a full, independent copy of the stack (services, database, queues) serving a group of tenants.
- A **thin routing layer** maps each tenant to its cell (by subdomain, header or token claim). It should be the simplest, most boring component in the system, because every request goes through it.
- **Deploy cell by cell:** a bad release reaches one cell's customers before it reaches all of them.
- **Noisy neighbours are contained:** a heavy tenant can have its own cell.
- **Data residency becomes placement:** an EU cell for EU customers.

The costs: infrastructure as code becomes mandatory (every cell must be identical). You need tooling to move a tenant between cells, a control plane to know which cell holds which tenant, and a plan for anything that needs data from all cells (reporting, global search). Cells are how very large platforms limit their blast radius; for most products they're a later step, not a starting point, and reaching for them early is a red herring.

My [tech-strategy one-pager](https://github.com/the-vishal-kumar/tech-strategy-onepager) works through this decision for a fictional SaaS company, and my [multi-tenant reference](https://github.com/the-vishal-kumar/multi-tenant-event-driven-ref) shows the pooled model that comes before cells: shared infrastructure, with tenants separated by row-level security (the [RLS case](/p/postgres-rls-tenant-isolation) measures what that costs).

```mermaid
flowchart TD
  S["New product, small team"] --> M["Modular monolith"]
  M --> Q1{"A part scales, fails or is owned differently?"}
  Q1 -->|no| M
  Q1 -->|yes| MS["Extract that service"]
  MS --> Q2{"Blast radius or data residency is a requirement?"}
  Q2 -->|no| MS
  Q2 -->|yes| C["Cells: a stack per group of tenants"]
```

## The clues that it's time to change

You can see these clues coming, if you know what to look for:

**Monolith → split out a service:**
- one part's load dictates the size of every instance;
- one part's failures keep taking the whole app down;
- teams queue up behind each other's deploys;
- one module's tests or build dominate everyone's cycle time.

**Services → fewer services** (it happens):
- most changes touch several services at once;
- most incidents are about calls between your own services;
- the team is smaller than the service count.

**Pooled → cells:**
- one tenant's incident regularly affects the others;
- deploys feel too risky to do often;
- a customer contract requires data residency or dedicated infrastructure;
- a single database is approaching the limit of what one primary can do (the [replicas and sharding case](/p/replicas-partitioning-sharding) covers the steps before that).

> **Remember this**
> - Each step buys isolation and pays for it in operations.
> - Split along differences in scaling, failure or ownership, and only those.
> - Cells keep each failure small, but multiply everything by the number of cells.

## What I'd do on Monday

1. **Start with a modular monolith**, with enforced module boundaries and async work behind a queue.
2. **Extract a service when a boundary has a reason**: different scaling, failure, ownership or release cadence.
3. **Prefer events over synchronous chains** between services, and an outbox for publishing them.
4. **Move to cells when blast radius or residency is the requirement**, with infrastructure as code and tenant-move tooling built first.
5. **Re-check the decision yearly.** Architecture should follow the team and the load, in both directions.

None of these shapes is guilty or innocent in the abstract. The craft is in matching the boundary to the reason, and that's a more useful skill than picking a side.
