Limiting Blast Radius with Cell-Based Architecture
This lesson explains how a cell-based architecture divides a system into independent copies so that failures that would otherwise affect everything, such as a bad deployment, a poison request or a corrupted configuration, affect only a fraction of customers.
Learning outcomes
After completing this lesson, you will be able to:
- Describe cells and the thin routing layer.
- Identify what cells provide.
- Explain the choice of partition key and other design considerations.
Cells and the router
A cell is a complete, independent instance of the workload, with its own compute, data stores and dependencies, serving a subset of customers. Cells share nothing that can fail together, so on AWS they are often deployed as separate stacks or even separate accounts, and a problem in one cell's database or configuration cannot reach another.
A thin cell router in front maps each request to its cell, usually by customer or tenant ID, using a mapping table. The router is the one component that all customers share, so it does as little as possible: no business logic, a small and rarely changing codebase, and a cached copy of the mapping, so that it keeps routing even if the service that maintains the mapping is unavailable.
The following diagram shows the router in front of three cells, one of which has failed.

What cells provide
A cell-based architecture divides a workload into independent, identical copies, called cells, each serving a subset of customers, with a thin routing layer in front. This changes how the system behaves in four ways. The blast radius shrinks: a failure, a poison request that crashes servers, or an overload affects only the customers of one cell. Deployments roll out cell by cell, so a bad release is caught in the first cell before it reaches everyone. Scaling means adding more cells of a fixed, tested size, rather than growing one system indefinitely into untested territory. Testing becomes realistic, because a cell's maximum size is known and can be load-tested. The following table summarises the effects.
| Concern | Effect of cells |
|---|---|
| Blast radius | A failure, poison request or overload affects only the customers of one cell |
| Deployments | Changes are deployed cell by cell, so a bad release is caught in the first cell |
| Scaling | Growth is handled by adding cells of a tested, fixed size rather than scaling one system indefinitely |
| Testing | A cell's maximum size is known and can be load-tested |
Design considerations
The partition key decides which cell serves a request, and it must keep everything a customer needs, both data and requests, in one cell; a design in which one request needs data from several cells loses the isolation that cells provide. Over time, some customers grow and cells fill unevenly, so the design includes cell migration, a tested procedure for moving a customer's data and routing to another cell without downtime.
Cells cost more and take more effort than a single deployment: there are more copies of everything, and deployments, monitoring and capacity are managed per cell. They therefore suit large, critical systems where a full outage is unacceptable, rather than small applications.
Cell-based design
Dividing a SaaS platform into cells
A SaaS platform serves 2,000 tenants from one deployment. A bad configuration push last quarter took every tenant offline for an hour. The architect divides the platform into cells: each cell is a complete copy of the application stack in its own account, sized for at most 250 tenants and load-tested at that size. A thin routing layer maps tenants to cells:
Request ──► CloudFront ──► cell router (Lambda@Edge or a small routing service)
│ looks up tenant ID in a DynamoDB global table: tenant -> cell
├──► cell-01 (account 7001): ALB, ECS, Aurora, SQS tenants 1-250
├──► cell-02 (account 7002): ALB, ECS, Aurora, SQS tenants 251-500
└──► ... cell-08
Deployment pipeline: cell-01 (canary, internal tenants) -> wait 1 h -> cells 02-03 -> wait -> cells 04-08A bad change now reaches the canary cell first, where alarms stop the pipeline before it spreads. A noisy tenant can exhaust only its own cell's resources. Growth means adding cell-09 from the same template rather than scaling one database beyond its tested limits. The router itself holds only a lookup table that rarely changes and is cached, which keeps the one shared component simple and statically stable.
Why should the cell router be as simple as possible?
Show answer
Every request passes through it, so it must be more reliable than the cells. Cells share nothing, which limits a failure to the customers in one cell.
Exam Tips
Remember for the exam
- To limit the blast radius of failures and bad deployments, use a cell-based architecture.
- Each cell is a complete, independent copy of the workload serving a subset of customers.
- Keep the cell router thin, because it is the only shared component.
- Deploy cell by cell so a bad release affects one cell first.
- Scale by adding cells of a fixed, tested size.