The bulkhead principle: cell-based architectures on AWS, end to end

The bulkhead principle: cell-based architectures on AWS, end to end

Cells contain failure like bulkheads contain water. How to build them on AWS — shuffle sharding, per-cell pipelines, and the anti-patterns that undo them.

Imagine a multi-tenant SaaS platform that ships a database migration. The migration runs a query that is correct in every test environment, but in production it overloads a shared cache layer that every customer depends on. What was meant to be a fifteen-minute deploy becomes a four-hour incident. Every customer is affected. The post-mortem may be technically excellent and operationally honest, but it cannot undo the obvious: the system was built in a way where one bad change could affect every customer at once.
AWS services have had to solve this class of problem at very large scale. One of the patterns used across large distributed systems is to avoid placing every customer behind the same failure boundary. Amazon Route 53 is a well-known public example of this principle through shuffle sharding: instead of every hosted zone depending on the same shared set of name servers, hosted zones are assigned to small subsets of a much larger pool. The result is that a failure can be bounded instead of becoming universal.
That is the idea behind cell-based architecture and related fault-isolation patterns such as shuffle sharding. The reason these systems survive failure is not that engineers somehow avoid every defect, or that every test catches every edge case. It is that the architecture is designed so that one failure is less than the whole.
This article is about that pattern: what cells actually look like on AWS, where shuffle sharding fits, what per-cell pipelines need to look like to keep blast radius small, and the quiet anti-patterns that turn a cell architecture back into a monolith without anyone noticing.

The bulkhead, in plain language

The bulkhead pattern comes from shipbuilding. You divide the hull into watertight compartments so a single hull breach floods one section, not the entire ship. The Titanic had bulkheads — they just did not extend high enough above the waterline. Tradeoffs are real, and the geometry of a bulkhead matters as much as its presence.
In software, a cell is the bulkhead. A cell is a complete, isolated copy of your stack — its own compute, its own storage, its own deployment progression, its own observability — that serves a defined subset of customers. Every cell looks identical at the architecture level; what varies is which tenants it holds. Failure in one cell affects the customers in that cell only. Done well, you can lose an entire cell and most of your customers will not notice.
The most important word in that paragraph is isolated. Two cells that share a global database are not isolated. Two cells that share a cache cluster are not isolated. Two cells that rely on the same centralized runtime dependency are not isolated. Two cells that receive the same risky deploy at the same time are not operationally isolated. A cell architecture without isolation is a monolith with extra steps.

What a cell actually looks like on AWS

In a typical AWS cell, the ingredients are familiar — the discipline is in how they are scoped.
A cell has its own network boundary, such as its own VPC or a strongly isolated subnet pattern within a VPC. It has its own entry point, such as an Application Load Balancer. It has its own compute fleet, such as an EC2 Auto Scaling group, an Amazon ECS service, or an Amazon EKS cluster or strongly isolated node group and namespace combination. For Kubernetes, a namespace alone is usually not enough to call something a cell; the cluster, node groups, add-ons, quotas, and operational dependencies need to be considered part of the failure boundary.
A cell also has its own primary data boundary. That may be an Amazon Aurora cluster, an Amazon DynamoDB table, or a logically isolated Amazon S3 namespace or prefix with separate access controls, quotas, and operational guardrails. The important point is not the service name. The important point is whether a failure, overload, bad query, bad partition, or bad operational change in one cell can affect another cell.
Each cell also needs its own observability boundary: CloudWatch log groups, alarms, dashboards, and health signals that describe that cell specifically. Fleet-wide dashboards are useful, but they should not replace cell-level health. If you cannot tell which cell is unhealthy, you cannot operate cells safely.
In front of the cells sits a thin routing layer. Its only job is to direct an incoming request to the right cell based on tenant identity or workload placement. Crucially, that routing layer should be dumb on purpose. It should not run business logic. It should not have a complex decision tree. It should not become a single point of failure that is smarter than the cells it serves.
If tenant identity is encoded in the hostname — for example,  tenant-a.example.com  or a delegated customer domain — DNS can help route traffic to the correct cell. Otherwise, a thin Layer-7 routing layer, such as CloudFront with origin selection, ALB rules, or a minimal routing service, is usually needed to map tenant identity to cell identity. The key is to keep this layer as small, observable, and boring as possible.
Cells can be scoped at different levels. You can have AZ-level cells for some failure domains, multi-AZ Regional cells for others, or separate Regional cells for cross-Region recovery patterns. The pattern is fractal, but the rule does not change: cells should not share critical workload dependencies in a way that allows one failure to take down all cells at once.

Shuffle sharding turns failure into degradation

Place each tenant into a single cell and you already have an isolation property: a bad tenant, bad deploy, or bad dependency affects one cell’s worth of customers rather than the whole fleet. Shuffle sharding goes further, but it is important to be precise about where it applies.
Shuffle sharding is not the same thing as cell-based architecture. A cell should be self-contained and should not casually share mutable state with other cells. Shuffle sharding is most powerful when the thing being assigned is stateless, replicated, or safe to serve from multiple independent targets — for example DNS name servers, request handlers, queues, workers, or read-only replicated capacity.
Instead of assigning every customer to the same shared pool, shuffle sharding assigns each customer to a small random subset of a much larger pool. With shard size two, for example, no single target failure removes the customer’s entire shard. With larger pools, the probability that two customers share the exact same shard becomes extremely small, which means a failure affects a narrow and unusual slice of the customer base rather than everyone at once.
Route 53’s hosted-zone infrastructure is one of the best-known AWS examples. AWS has described Route 53 as using 2,048 virtual name servers and assigning each hosted zone a shuffle shard of four. That creates hundreds of billions of possible combinations and keeps overlap between customers very small. If one virtual name server misbehaves, only the hosted zones assigned to that name server are exposed to the issue, and those zones still have other assigned name servers available for retry.
The key point is not the number 2,048. The key point is the shape of the failure. Instead of one shared component sitting in the path of every customer, each customer receives a small, mostly unique slice of capacity. Failure becomes degradation for a bounded set of customers, not an outage for the entire service.

Per-cell pipelines are non-negotiable

The single most common failure mode in cell architectures I review is shared deployment progression. The cells are physically separate, but the deployment mechanism pushes the same change to all of them at the same time, with the same code, in the same window. This breaks the isolation the cells were supposed to provide. A bad deploy hits every cell simultaneously, and the architecture’s blast-radius story collapses.
The fix is mechanical: deployment must be cell-aware. Each cell can have its own pipeline, or a shared orchestrator can exist, but progression must happen cell by cell, with bake time between cells, with automated rollback on alarm, and with the ability to stop independently before the next cell receives the same revision.
Canary cells go first, holding real traffic for minutes or hours depending on the risk profile. The pipeline does not progress unless the cell it just touched is healthy. If the first cell is unhealthy, the blast radius is the first cell. That is the whole point.
This is operationally heavier than a single fleet-wide deploy. It is also the price of resilience. There is no shortcut.

The quiet anti-patterns

A cell architecture can drift back into a monolith without anyone noticing. The patterns to watch:
The shared global database. Two cells write to the same Aurora cluster. A query plan regression, storage issue, connection storm, or operational mistake in that cluster affects both cells. The cells were never really isolated; you just renamed your monolith.
The shared cache layer. Two cells depend on the same cache cluster. One bad tenant, hot key, memory pressure event, or eviction pattern can affect customers outside the original cell. The failure boundary is the cache, not the cell.
The smart router. The routing layer in front of the cells gets clever. It caches state. It makes routing decisions based on payload inspection. It accumulates business logic. It becomes the kind of component that has its own bugs and its own deploy risk. Now the router is a single point of failure that knows more than the cells do. Any defect in the router is fleet-wide.
The centralized runtime control plane. A single coordination service is the source of truth for which tenant belongs to which cell, and every request depends on calling it synchronously. If that service is impaired, no cell can serve requests, even if every cell is healthy. The cells inherited a control-plane dependency they were supposed to avoid.
The fleet-wide deployment. Every cell is updated at the same time because it is easier to operate one pipeline than many deployment waves. The architecture looks cellular on a diagram, but operationally it still fails like a monolith.
The shared observability blind spot. Metrics are aggregated at fleet level, alarms fire at fleet level, and dashboards show averages. One cell can be burning while the fleet looks healthy. If you cannot see the cell, you cannot protect the cell.
Each of these is solvable, but only if you name them. The discipline is in maintaining the isolation property over time, against pressure to centralize for convenience.

What’s next

Once you have cells, you need a way to shift traffic when something is wrong — and that traffic-shifting mechanism needs to keep working even when the control plane around your workload is impaired.
That is where Amazon Application Recovery Controller becomes relevant. The next article in this series goes deep on ARC routing controls, Region switch, zonal shift, zonal autoshift, and the difference between recovery actions that depend on a control plane and recovery actions designed around highly available data-plane behavior.
One important update: ARC readiness checks are no longer open to new customers as of April 30, 2026. Existing customers can continue using them, but for new designs the focus should be on currently available ARC capabilities such as routing controls, Region switch, zonal shift, and zonal autoshift.


Cristian Critelli is the EMEA Lead for Networking and Resilience Specialist Partner Solutions Architect at AWS focused on networking and resilience across EMEA. His book, Cloud Networking and Resilience (Apress), is out in May 2026.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article