Sven Erik Matzen

Software Architect | Cloud & Security Expert | AI-enabled Solutions

The Smallest Possible Damage – Cells, Shuffle Sharding and the Art of Limiting the Blast Radius

Cloud Computing · 2026-11-13

EU label: fully AI-generated content Fully AI-generated article (no prior review).

🎧 Listen to this article

The Hook

On April 21, 2011, at 12:47 AM Pacific time, engineers in the US East Region of Amazon Web Services performed a routine network change in a single Availability Zone (AZ). According to AWS's post-event summary, the traffic shift was executed incorrectly: traffic ended up on a network with too little capacity. The storage nodes of the block storage service EBS lost contact with their replicas and all began searching for free space for new mirror copies at the same time. The cluster's free capacity was quickly exhausted, and many nodes got stuck in a loop. AWS called this a "re-mirroring storm." About 13 % of the volumes in the affected AZ were in this "stuck" state.

The truly instructive part came next: the EBS control plane – the programming interface for creating and managing volumes – consisted of one set of services per Region, distributed across the zones but with a Region-wide shared thread pool. That pool filled up, and the control plane began rejecting API requests for other Availability Zones in the same Region as well. A failure that began in one zone thus impaired the EBS API across the entire Region via a shared component – while the volumes in the other zones themselves largely kept running.

This article is about the architectural answer to exactly this experience: if you cannot prevent failures, you can at least decide how much they hit. The term blast radius has become established for this, and two techniques are at its center: cell-based architecture and shuffle sharding.

The Core Concept: From Preventing to Limiting

Classic high availability asks: how do I prevent the system from failing? Redundancy, failover, replication. That question remains right, but it has a blind spot. Some failures hit all replicas at once: a faulty software update, a configuration change, a "poisonous" request that crashes every server that processes it, or a single customer who overwhelms the shared system with a load spike. Against such correlated failures, more redundancy of the same system helps little – the copy has the same defect.

The change of perspective is therefore: I assume that something will break, and I design the system so that a failure reaches only a small, predictable portion of customers or requests. The AWS whitepaper on cell-based architecture puts the trade-off as a pointed question: is it better for 100 % of customers to experience a 5 % failure rate, or for 5 % of customers to experience a 100 % failure rate? For the affected 5 %, the second option is worse. For the system as a whole, however, it is more manageable: the damage is clearly bounded, the remaining 95 % keep working normally, and remediation can focus on a small area.

Example 1: The Cell – Many Small Copies Instead of One Big System

The whitepaper Reducing the Scope of Impact with Cell-Based Architecture (AWS, published September 20, 2023) defines it this way: a cell-based architecture uses multiple isolated instances of a workload; each instance is called a cell. Each cell is independent, does not share state with other cells, and handles a subset of the requests.

The math is simple: if a workload serves 100 requests across 10 cells and one cell fails, according to the whitepaper 90 % of the requests remain unaffected. This assumes the load is evenly distributed – a cell with a particularly large customer carries correspondingly more.

So that customers do not need to know which cell they live in, a routing layer sits in front. It distributes requests to the cells based on a partition key (for example a customer ID) and presents a single endpoint to the outside. The whitepaper calls the cell router the "thinnest possible layer": it should assign requests to the right cell – and nothing else. The reason is obvious: the router is – alongside the control plane – one of the few components that all cells have in common. Every additional piece of logic there enlarges exactly the blast radius the cells are meant to shrink.

The architecture also includes the separation of the control plane (creating, moving, updating, monitoring cells) and the data plane (the actual service including the router). The whitepaper connects this with static stability: the data plane should keep running even if the control plane fails. Related to this, but not the same, was the problem of 2011: there, a Region-wide shared control plane carried a zone problem into the management of volumes across the entire Region.

Cells also help in operations: the whitepaper recommends rolling out software updates in waves, cell by cell. A faulty update then initially hits only one cell and can be stopped before it reaches all of them.

Example 2: Physalia – One Database per Volume

How far the principle can be pushed is shown by a paper by Marc Brooker, Tao Chen and Fan Ping (AWS) at the USENIX conference NSDI 2020, titled Millions of Tiny Databases. It describes Physalia, a transactional key-value store that, according to the abstract, was started in 2013 as the configuration store for EBS. The authors write, in essence, that they did not want one database, but millions.

The paper explicitly names the 2011 incident as the inspiration for the design goal of limiting the blast radius of failures. The design draws a radical consequence from it:

  • Each EBS volume gets its own partition key, and each cell manages the data of exactly one partition key.
  • A cell is a Paxos state machine; in the EBS deployment, Paxos runs over seven nodes.
  • Cells do not coordinate with other cells. A node belongs to many cells, but each only to a small subset, and each cell is used only by a small subset of clients.
  • The nodes of a cell are placed close to the clients that need them in the network and power topology – but spread widely enough that small failures do not take the cell down.

The paper formulates the design goal as follows: be extremely available – but only for the keys a client actually needs, and from that client's perspective. That is a remarkably modest definition of availability. A volume does not need the availability of the entire database, only that of its own configuration.

Example 3: Shuffle Sharding – the Combinatorics of Isolation

Cells have an uncomfortable property: whoever sits in a broken cell is fully affected. Shuffle sharding improves this situation with combinatorics. An article in the Amazon Builders' Library (December 2019) explains the idea using eight workers:

Approach Division Share of customers hit by a problem
No sharding all customers on all 8 workers all
Classic sharding 4 shards of 2 workers each 25 %
Shuffle sharding each customer gets a pair (shuffle shard) from 8 workers; 28 possible pairs, with hundreds of customers several customers share a pair approx. 1/28

The trick: instead of assigning customers to fixed, disjoint groups, each customer receives a randomly chosen combination of workers – a "virtual shard." With eight workers there are 28 different pairs. If a customer takes down its two workers with a problematic request or a load attack, only the customers assigned exactly the same pair are fully affected; all others share at most one worker with it and therefore still have a working one. The article puts the share of fully affected customers, with hundreds of customers, at 1/28 – according to the author seven times better than classic sharding.

At scale the effect becomes dramatic. For the DNS service Route 53, according to the article, AWS set up 2048 virtual name servers and assigned each customer domain a shuffle shard of four of them. That yields roughly 730 billion possible combinations (computed: "2048 choose 4" = 730,862,190,080). In addition, the article states that no customer domain shares more than two virtual name servers with any other – a property of the assignment, not of chance alone.

The article names one decisive condition explicitly: the isolation works only if the clients are fault-tolerant, for example by retrying another worker of their shard when one has failed. A client that stubbornly queries only one server loses most of the benefit.

Example 4: Cells and Shuffle Sharding Together

Both techniques limit damage, but at different levels. The FAQ of the AWS whitepaper draws the line clearly: a cell should be self-contained and not share state; shuffle sharding can be used within a cell, but not across cell boundaries. In addition, shuffle sharding is trickier for stateful components.

I am of the opinion that a useful rule of thumb follows from this – with fluid boundaries: cells are above all the hard wall against failures that destroy everything in one area (faulty deployments, data corruption); shuffle sharding is above all the finer tool against failures that originate from individual customers or requests (load spikes, "poisonous" requests).

Framework: Five Questions About Blast Radius

Question What to watch for
What is my partition key? Customer, tenant, volume, region – along what can the work be cleanly separated?
What do all parts still share? Router, control plane, configuration, database – every shared component is a potential path for failures to spread wide.
Does the data plane keep running without the control plane? Static stability: existing resources should keep working even if management fails.
How are changes rolled out? Cell by cell, with the ability to abort, instead of everywhere at once.
Are my clients fault-tolerant? Without retrying on other nodes, shuffle sharding loses its effect.

The Costs – and Why They Are Paid Deliberately

Cells are not a free pattern. The whitepaper itself names higher complexity from redundant infrastructure, higher infrastructure costs, the need for specialized tools and operational practices, and the necessary investment in a routing layer. It states explicitly that cell-based architecture will not be a good choice for all workloads. The shuffle sharding article likewise concedes that sharding requires more free spare capacity ("slack capacity") than an undivided fleet.

There is also a question of size. Cells that are too small mean many units to operate; cells that are too large lose the isolation benefit and are more likely to hit quota limits. The whitepaper names three opposing forces: big enough to fit the largest workloads, small enough to test at full scale, and big enough to gain economies of scale. And: the router and the control plane remain shared components – which is why the router should be as simple as possible and the data plane should keep running without the control plane.

The Central Takeaway

  • Limiting complements preventing. Against correlated failures (deployments, configuration, poisonous requests), additional redundancy of the same system helps little; division into isolated units can confine the damage to a known share.
  • The math is simple, the precondition is not. With even load, 10 cells mean 10 % affected per cell failure – but only if the cells share no state and the remaining shared parts (a router as thin as possible, a control plane without which the data plane keeps running) are kept small.
  • Combinatorics only works with cooperating clients. Shuffle sharding drastically reduces the share of fully affected customers, but requires clients that fall back to other nodes of their shard.
  • Shared control planes are a typical path for failures to spread wide. In 2011, a zone problem traveled through the Region-wide control plane into other zones.
  • Isolation costs. More infrastructure, more tooling, more spare capacity – I am of the opinion that this pays off above all for services where a widespread outage hits many customers at the same time.

Cross-References in the Vault

Food for Thought

Imagine that tomorrow morning a faulty deployment goes live in your most important service. What percentage of your customers would be affected – and which single component would you have to change so that this number is half as large next time?

Fact Check

Automated AI check against primary sources; no human expert review.

64 claims were checked (30 hard facts, 7 quotes or paraphrases, 13 source attributions, 14 synthesis claims). 13 passages were corrected or weakened. The most important corrections:

  • In the shuffle sharding example with eight workers, not every customer gets its "own" pair: with hundreds of customers and only 28 pairs, several customers share the same pair and are affected together.
  • The 2011 incident was made more precise: in the other zones, the EBS API (control plane) was impaired, not the volumes themselves; in addition, the confusion with the principle of static stability was resolved.
  • An internal contradiction was removed: the router is not the only component all cells have in common – the control plane is shared as well.

Sources and Further Reading

  1. Amazon Web Services (2011): Summary of the Amazon EC2 and Amazon RDS Service Disruption in the US East Region (April 29, 2011). https://aws.amazon.com/message/65648/
  2. Amazon Web Services (2023): Reducing the Scope of Impact with Cell-Based Architecture. AWS Whitepaper, September 20, 2023. https://docs.aws.amazon.com/wellarchitected/latest/reducing-scope-of-impact-with-cell-based-architecture/reducing-scope-of-impact-with-cell-based-architecture.html – FAQ: https://docs.aws.amazon.com/wellarchitected/latest/reducing-scope-of-impact-with-cell-based-architecture/faq.html
  3. Brooker, M., Chen, T., Ping, F. (2020): Millions of Tiny Databases. 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI '20), pp. 463–478. https://www.usenix.org/conference/nsdi20/presentation/brooker
  4. Amazon Builders' Library (December 5, 2019): Workload isolation using shuffle-sharding. Author per page: "Colm" (AWS). https://aws.amazon.com/builders-library/workload-isolation-using-shuffle-sharding/

← All articles