All posts
  • #reliability
  • #resilience
  • #architecture

Blast Radius: Why Ships Have Bulkheads and Clouds Have Cells

Failures are guaranteed; how far they spread is a design choice. Bulkheads, circuit breakers, cell-based architecture, shuffle sharding and staged rollouts, with case files from AWS, CrowdStrike, Facebook, Slack, Netflix and Razorpay.

Akshit Bansal22 min readPart 2

fail small, fail on purpose
on this page

In one minute

  • Failures are guaranteed. Blast radius is how much one failure is allowed to damage: one request, one server, a slice of customers, or everyone.
  • Shrink it in space with walls: bulkheads (a capped pool per dependency), circuit breakers (stop calling a dead service), cells (full copies of your stack, each serving a slice of customers) and shuffle sharding.
  • Shrink it in time with staged rollouts: ship to 1% first, watch, then widen. In July 2024 one CrowdStrike update reached about 8.5 million Windows devices at roughly the same time.
  • Walls only work if they are complete. One shared database or config file quietly undoes them, so find what everything shares, and test your walls on purpose.

Words you need

  • Blast radius

    How much of your system (users, data, money, time) one failure can damage.

    Like how far the damage spreads from a bang

  • Failure domain

    A group of things that fail together because they share something: a server, a power supply, a database, a config file.

    Like all the rooms on one fuse

  • Single point of failure

    One part that takes everything down when it breaks. A failure domain the size of your whole system.

    Like the one main cable into your house

  • Isolation

    Any wall between failure domains, so a failure on one side can't cross to the other.

    Like the walls between a ship's compartments

  • Dependency

    Another service your code calls and needs: a database, a payment provider, a recommendations service.

    Like the suppliers a restaurant relies on

  • Thread (worker)

    One slot a server uses to handle one request at a time. A server has a fixed number of them.

    Like a waiter: 100 threads are 100 waiters

  • Bulkhead

    On a ship, a watertight wall. In software, a separate, capped pool of threads or connections for each dependency.

    Like a wall that keeps a flood in one compartment

  • Circuit breaker

    Code in front of a dependency that stops calling it after too many failures, then tries one test call later.

    Like the switch in your fuse box that trips

  • Fail fast

    Give up at once with an error instead of waiting for an answer that won't come.

    Like a 'closed' sign, so you don't queue for nothing

  • Load balancer

    Spreads requests over several servers and stops sending to one that looks broken.

    Like a host seating guests at free tables

  • Cell

    A complete, independent copy of your whole stack (servers, database, queues) that serves only a slice of your customers.

    Like one branch of a chain, with its own kitchen

  • Router (cell router)

    A thin layer in front of the cells that sends each customer to their own cell.

    Like a receptionist who knows which branch is yours

  • Monolith

    One system that serves every customer. In the demo below, that's a single cell.

    Like one big kitchen for the whole city

  • Shard

    A fixed group of workers that serves a fixed group of customers.

    Like a checkout lane kept for certain shoppers

  • Shuffle sharding

    Give each customer its own random mix of a few workers, so two customers almost never share all of theirs.

    Like every guest gets a different pair of waiters

  • Poison request

    A request that crashes whatever server handles it.

    Like a dish that sets off the fire alarm in any kitchen that cooks it

  • Region / availability zone

    A region is a separate geographic area of a cloud. An availability zone is a separate data centre inside a region, with its own power and network.

    Like separate cities, and separate buildings in one city

  • Redundancy

    Running spare copies (two servers, a standby database) so one takes over when another dies.

    Like a spare tyre in the boot

  • Deploy / config change

    Shipping new code, or new settings, to your servers.

    Like sending a new menu to every branch

  • Staged rollout (canary)

    Ship a change to a tiny slice first, check its health, then widen step by step. Named after the canaries miners carried to detect gas.

    Like tasting the soup before serving the whole room

  • Health check

    An automatic test that says whether a machine or service is working right now.

    Like taking a patient's pulse

  • Feature flag

    A switch in code: new code ships 'off' and is turned on for a few users at a time. Turning it off is the kill switch.

    Like a dimmer with an off button

  • Chaos engineering

    Breaking things on purpose, in a controlled way, to prove your walls hold before a real incident does it for you.

    Like a fire drill

  • Gray failure

    A part that isn't fully down, just slow and flaky. Hard to spot and hard to route around.

    Like a flickering bulb rather than a dead one

  • DNS / BGP

    DNS turns names like facebook.com into network addresses. BGP is how networks tell each other which addresses they can reach.

    Like the phone book, and the road signs between cities

The Friday the screens went blue

  • On Friday, 19 July 2024, airline check-in counters, hospital systems, bank branches and TV stations around the world showed the Windows "blue screen of death". Machines crashed, rebooted and crashed again.
  • It wasn't a cyberattack. The security company CrowdStrike pushed a routine content update to its Falcon sensor, software that runs deep inside Windows to spot threats. The sensor couldn't handle the update, and crashed the whole operating system with it.
  • Microsoft estimated about 8.5 million Windows devices were affected, which it noted was less than one percent of all Windows machines. Less than one percent, and it still grounded flights.
  • The bug was small. What made it global was its reach: the update went to everyone running that sensor at roughly the same time.

What blast radius means

The word comes from explosives, and the picture is the same: the bang will happen somewhere; what you decide is how far the damage spreads.

one requestone server · safeone cellone regioneveryonebug

Where does the wall hold?

Playing through all five. Pick one to stop.

The same bug, five possible fates. Good architecture doesn't make the bug disappear; it decides which ring the bug may reach. Hover or tap a fate to move the wall.
  • Blast radius is mostly not about preventing failures. Disks die, deploys go wrong, people fat-finger commands.
  • It is about deciding, ahead of time, how much each of those failures is allowed to hurt.
  • Each failure domain is one blast radius. A single point of failure is a blast radius the size of your whole system.

Where the idea came from

The oldest version of this idea floats.

  • Ships are split into watertight compartments by walls called bulkheads. Puncture the hull and water fills one compartment, the walls hold, and the ship stays afloat.
  • According to the British inquiry, the Titanic could have stayed afloat with its four forward compartments flooded. The iceberg opened more than that, including a boiler room further back.
  • Its bulkheads also didn't reach the top deck. As the bow sank lower, water poured over the top of one bulkhead into the next compartment, then the next.
Bulkheads (the walls)
sternbowholed here

0 of 9 compartments flooded at the bow. Watch the wall tops.

A generic ship, not a scale drawing of the Titanic. The bow is holed. With walls that stop below the deck, water spills over each wall top in turn; with walls that reach the deck, the flood stays where it came in. Switch the walls to compare.

Software borrowed the word, then the cloud raised the stakes:

  1. 01

    Ships

    watertight compartments, split by bulkheads

  2. 02

    2007: Release It!

    Michael Nygard describes bulkheads and circuit breakers for software

  3. 03

    2011–2012: Hystrix

    Netflix's API team builds them into a Java library, then open-sources it

  4. 04

    The cloud

    regions and zones keep a fire, flood or power cut local

  5. 05

    2018: re:Invent

    AWS's Peter Vosshall on cells and shuffle sharding

  • When thousands of companies run on one platform, a bad change at the platform level has a planet-sized blast radius.
  • So the steps below go from the smallest wall (one dependency) to the biggest (your whole fleet, over time).

How to shrink the blast radius

Step 1: Find what everything shares

Before adding walls, list your failure domains. For every part, ask: if this broke right now, who would notice? The scary answers are rarely things anyone calls "a service".

Checkouttakes payments
Searchfinds products
Profilesaccounts and settings

Shared by everything

One databaseevery feature writes to it
Config and feature flagsread by everything at startup
Deploy pipelineships to every server at once
DNS, auth, the networkbetween all your data centres
Monitoring and chatthe tools you'd use to fix the outage
Three services that look independent, leaning on the same five things. Each shared box is one failure domain that spans all of them. Hover a box to focus it.

Step 2: Bulkheads, so one slow thing can't eat everything

  • A web server has 100 threads. It calls two services: payments and recommendations.
  • One day recommendations gets slow: 30 seconds per request. Every thread that calls it gets stuck waiting.
  • Soon all 100 threads are stuck on recommendations, and nobody can pay, even though payments is perfectly healthy.
  • A bulkhead gives each dependency its own capped pool. Recommendations can tie up its own threads and no more.
InteractiveDrown the thread pool
make it slow, then add bulkheads
Recommendations service
requests in0/100 busy

One shared pool · 100 threads

  • recommendations call
  • payment
  • other work
  • stuck waiting

payments: 100% served

Everything is quick. Threads free up as fast as requests arrive.

Each square is one thread. Calls stream in and hold a thread until they finish. Slow recommendations never finish, so with one shared pool they slowly take every thread. With bulkheads, recommendations gets 10 threads, payments 40, everything else 50.
bulkhead.tsts
// Each dependency gets its own small "compartment" of concurrent calls.const recommendations = new Bulkhead({ maxConcurrent: 10 });const payments = new Bulkhead({ maxConcurrent: 40 });async function productPage(userId: string) {  // If 10 recommendation calls are already stuck, fail fast instead of waiting.  const recs = await recommendations.run(() => fetchRecs(userId)).catch(() => []);  return render({ recs });}
  • A slow recommendations service can now tie up at most 10 threads.
  • The page shows no recommendations; payments keep working. The flood stays in its compartment.

Step 3: Circuit breakers, so you stop hammering a dead thing

Bulkheads cap the damage. Circuit breakers cut it off early.

  • A breaker sits in front of a dependency and watches the results.
  • Closed: calls go through as normal.
  • Open: after too many failures it trips, and calls fail fast, without even trying, for a cool-down period.
  • Half-open: after the cool-down it lets one test call through. If it works, the breaker closes. If not, it opens again.
InteractiveTrip the breaker
break the service, then fix it

sent 0 · failed fast 0

Your appmakes calls
Breakerclosed
Servicehealthy

Closed

calls go through

failures 0/3

Open

fail fast, no calls

Half-open

try one test call

1 call allowed

  • Closed → Opentoo many failures
  • Open → Half-openafter a cool-down
  • Half-open → Closedtest call worked
  • Half-open → Opentest call failed

The service is healthy. Calls go through and come back.

Green calls go through and come back. Red calls are lost at the broken service. Amber calls are refused at once by the open breaker. Blue is the single test call while half-open.

Step 4: Cells, so a failure only reaches a slice of customers

Bulkheads and breakers protect you from other services failing. Your own service is the next risk: a bad deploy, a poison request or a corrupted cache can take down every copy of it, because every copy runs the same code with the same config.

  • Cell-based architecture runs several complete, independent copies of your whole stack, called cells.
  • Each cell has its own servers, its own database and its own queues, and serves only a slice of customers.
  • A thin router in front sends each customer to their cell.
  • With 10 cells, one cell failing hurts about 10% of customers. With 100 cells, about 1%.
Cell routercustomer → their cell, nothing more

Cell 1

Serverssame code as every cell
Own databasethis slice's data only
Own queuethis slice's jobs only

Cell 2 · down

Serversbad deploy landed here
Own databasethis slice's data only
Own queuethis slice's jobs only

Cell 3

Serverssame code as every cell
Own databasethis slice's data only
Own queuethis slice's jobs only
Each cell is a full copy of the stack. Cell 2 is down; customers in cells 1 and 3 never notice.

Try it. Start with one cell (a plain monolith), drop the failure on it, then add cells and try again. Then flip on the shared database.

InteractiveDrop a failure
drag the blast!
loading the demo…
Each dot is a customer. The router assigns customers to cells. A failure inside one cell only reaches that cell's customers, unless the cells secretly share something, like one database.

Quick check: You split your service into 20 cells, but all 20 read their settings from one shared config service. A bad config value goes out. Roughly how many customers are hit?

Step 5: Shuffle sharding, so one bad customer can't sink their neighbours

Cells have a weakness: everyone in a cell shares its fate. If one customer sends a poison request, everyone else in that cell suffers too.

  • Shuffle sharding doesn't split customers into fixed groups.
  • Instead, each customer gets its own random combination of a few workers.
  • Two customers might share one worker, but it is very unlikely they share all of them.
  • So when a poison customer crashes its workers, everybody else still has at least one healthy worker.
InteractivePick the poison customer
try every letter
Who sends the poison requests?
Plain sharding: fixed groups of 2 workers
W1W2W3W4W5W6W7W8XpoisonAdownBCDEFG

Customer A lost both workers and is down too.

Shuffle sharding: each customer its own pair
W1W2W3W4W5W6W7W8XpoisonABCDEFG

Nobody else is down. 3 customers lost one worker and carry on with the other.

Same 8 workers, same 8 customers, 2 workers each. With fixed shards, the poison customer's shard-mate goes down with it. With shuffle shards, no two customers share the same pair, so nobody else loses both workers.

The maths is what makes it powerful:

Plain shardingShuffle sharding
Who shares workersEveryone in a shard shares all the same workersCustomers overlap partly, almost never fully
One poison customerTakes its shard-mates down with itOthers lose part of their capacity and carry on
8 workers, 2 per customer4 fixed shards28 possible pairs
AWS Route 53–2,048 virtual name servers, 4 per customer domain: about 730 billion combinations

Quick check: With shuffle sharding, customer X's poison requests crash its two workers. Customer A shares one of those workers. What happens to A?

Step 6: Shrink the blast radius in time

Everything so far shrinks blast radius in space: which customers a failure reaches. The CrowdStrike outage was about time: the bad update reached everyone before anyone could react.

  • A staged rollout ships a change to a tiny slice first, maybe 1% of machines, watches health metrics, and only then widens to 10%, 50% and 100%.
  • A feature flag goes further: new code ships "off", and you switch it on for a few users at a time, with a kill switch if it misbehaves.
checkout.tsts
if (flags.isEnabled("new-checkout", { userId, rolloutPercent: 5 })) {  return newCheckout(cart); // 5% of users see this}return oldCheckout(cart); // flip the flag off and everyone is back here instantly
InteractiveShip an update
ship a bad one!
loading the demo…
Same bad update, two rollout strategies. All at once, there's no moment to notice the problem. Staged, the first 1% acts as a canary: the health check fails and the rollout stops and rolls back automatically.

Step 7: Test your walls on purpose

  • Walls you've never tested are walls you're hoping work.
  • Chaos engineering means injecting failures on purpose: killing servers, cutting network links, slowing dependencies.
  • Do it in a controlled way, while people are watching, to prove your isolation holds before a real incident tests it for you.
  • Netflix made this famous with Chaos Monkey (case file #5).

Other ways to deal with failure

Isolation isn't the only strategy. Each alternative has its own everyday picture:

StrategyWhat it isGood againstBlind spot
Make it never fail (the hull)Better hardware, redundant power, more testing and reviewLowers the chance of failureDoesn't shrink the damage. A bad config, a bad deploy or a leap-day bug hits every machine at once.
Redundancy (the spare tyre)Extra copies: two servers, a standby databaseA dead disk, a dead serverThe spare runs the same code and config. A poison request kills it as soon as it's retried there.
Active-active multi-region (two branches)The full system in two or more regions at once, traffic split between themA whole region going bad: move its users to the othersCoarse: one wall per region, not per slice of customers
Change freeze (the wedding)No deploys in risky periods such as big sales and holidaysA quiet, risky few daysChanges queue up and ship later in one bigger, riskier batch. A short-term tool, not an architecture.
Isolation (bulkheads, cells, shards)Walls that cap how far one failure spreadsBad deploys, poison requests, a slow dependencyMore to run and pay for, a router that must stay boring, and pain for features that see all customers (global search, analytics, moving a customer between cells)

Quick check: Your app runs on two identical servers behind a load balancer. A poison request crashes server 1, and the client retries. What happens?

When the simpler option wins

  • For a small product with a few thousand users, a well-run single system with good backups, staged deploys and circuit breakers is usually the right call.
  • Cells pay off at scale, when "everyone is down" costs real money every minute.

In the wild: case files

Case file #01

Amazon Web Services

Big tech · 2018 onward

cells + shuffled shards

The problem
AWS services serve millions of customers, so any failure that reaches 'all customers' is enormous. Route 53, AWS's DNS service, also faces the risk that one customer's traffic (for example, an attack aimed at their domain) could overwhelm servers that other customers depend on.
The fix
AWS describes building services from cells, independent copies of a service that each serve a subset of customers, so a failure stays inside one cell. Route 53 uses shuffle sharding: its capacity is arranged into 2,048 virtual name servers, and each customer domain gets its own shuffle shard of 4 of them.
The lesson
With combinations like that, two customers almost never share all their servers, so one customer's bad day rarely becomes everyone's. Isolation can be built from maths, not just from more hardware.
Source: AWS Builders' Library: shuffle-sharding(opens in a new tab)
Case file #02

CrowdStrike

Big tech (security) · July 2024

1% first. always.

The problem
A Rapid Response Content update for the Falcon sensor on Windows was the first to use a 21st input field that the sensor wasn't prepared for. The sensor hit an out-of-bounds memory read and crashed Windows. The content had passed a validator and was trusted based on earlier successful deployments, and it went out broadly at once. Microsoft estimated 8.5 million Windows devices were affected.
The fix
In its preliminary post-incident review, CrowdStrike committed to a staggered deployment strategy for this kind of content: starting with a canary deployment to a small subset of systems, monitoring sensor and system performance, then widening in stages. It also promised customers more control over when and where these updates land, plus more testing and validation.
The lesson
Content and config changes need the same staged rollout as code. A tiny canary with a health check would have turned a global outage into a contained one.
Source: CrowdStrike: Preliminary Post Incident Review(opens in a new tab)
Case file #03

Facebook (Meta)

Big tech · 4 October 2021

your repair tools are in the blast radius too

The problem
During routine maintenance, a command meant to assess the capacity of Facebook's global backbone network unintentionally took down all the backbone connections, disconnecting its data centres. An audit tool that should have stopped the command had a bug. Facebook's DNS servers, seeing the data centres unreachable, withdrew their BGP route announcements, so the rest of the internet couldn't find Facebook, Instagram or WhatsApp at all.
The fix
Engineers couldn't reach the data centres through normal means, and the outage had also broken many of the internal tools they'd normally use to investigate. Teams had to physically go to data centres to work on the routers, and service was restored hours later.
The lesson
A safety feature (DNS servers withdrawing themselves when unhealthy) widened the blast radius when everything failed at once. Keep your repair tools and access paths outside the failure domain they're meant to fix.
Source: Meta Engineering: More details about the October 4 outage(opens in a new tab)
Case file #04

Slack

Startup turned big tech · 2021–2023

drain the zone in 5 minutes

The problem
On 30 June 2021, a network link between one availability zone and others in Slack's main US East region started failing intermittently. It wasn't fully down, just slow and flaky, which made it hard to detect and route around. Because a single Slack request can fan out to many backend calls, the flaky zone degraded the whole service.
The fix
Over roughly a year and a half, Slack moved its most critical user-facing services to a cellular architecture aligned with availability zones, so that traffic can be drained away from a sick zone.
The lesson
Slack's write-up and InfoQ's coverage describe being able to drain traffic from an affected zone within about five minutes. Cells aren't only about crashes; they give you a clean way to step away from 'gray' failures that are hard to diagnose.
Source: Slack Engineering: Slack's Migration to a Cellular Architecture(opens in a new tab)
Case file #05

Netflix

Big tech · 2011

break it before it breaks you

The problem
After moving to AWS, Netflix needed confidence that the loss of individual servers wouldn't hurt the service. Untested redundancy is just a hope.
The fix
It built Chaos Monkey, a tool that deliberately disables production instances during business hours, while engineers are watching, so teams are forced to build services that tolerate losing a machine. The 2011 'Simian Army' post introduced it, and the code was later open-sourced.
The lesson
Isolation is a claim until you test it. Injecting failure on purpose, in small doses, keeps the walls honest.
Source: Netflix Tech Blog: The Netflix Simian Army(opens in a new tab)
Case file #06

Razorpay

Indian fintech · ongoing

one bank down ≠ checkout down

The problem
An Indian payment gateway depends on many outside partners: banks, card networks, UPI apps. Any one of them can go down or slow down at any moment, and without care, a single bank's outage turns into failed payments and a broken checkout for every merchant.
The fix
Razorpay describes a downtime-detection system that watches payment traffic every second against thresholds, at different levels of detail, to spot a misbehaving partner. When a bank or instrument is failing, it can flag or disable that payment option at checkout so customers pay another way, and merchants can be notified through APIs and webhooks.
The lesson
This is a circuit breaker at business level: detect the failing dependency fast and route around it, so one partner's outage stays one partner's outage.
Source: Razorpay: proactive approach to downtime management(opens in a new tab)

Learn next and sources

  • Next ideas: timeouts and retries with backoff, load shedding, rate limiting per customer, and how a cell router decides which customer lives where.
  • The best long reads: Michael Nygard's Release It! for bulkheads and circuit breakers, and the Amazon Builders' Library article on shuffle sharding (both below).
  1. Microsoft's estimate of affected devices, reported by TechCrunch (opens in a new tab), July 2024.
  2. CrowdStrike, "Falcon Content Update Preliminary Post Incident Report" (opens in a new tab), July 2024, and "Root Cause Analysis" executive summary (opens in a new tab), August 2024.
  3. British Wreck Commissioner's Inquiry, "Observations" (opens in a new tab), 1912 (Titanic compartments and bulkheads).
  4. Michael T. Nygard, Release It! Design and Deploy Production-Ready Software, Pragmatic Bookshelf, 2007.
  5. Netflix releases Hystrix (opens in a new tab), TechCrunch, 2012, and the Hystrix wiki (opens in a new tab).
  6. AWS News Blog, "Some unique sessions at re:Invent 2018" (opens in a new tab) (Peter Vosshall, "How AWS Minimizes the Blast Radius of Failures").
  7. Colm MacCárthaigh, "Workload isolation using shuffle-sharding" (opens in a new tab), Amazon Builders' Library.
  8. Santosh Janardhan, "More details about the October 4 outage" (opens in a new tab), Engineering at Meta, 2021.
  9. Cooper Bethea, "Slack's Migration to a Cellular Architecture" (opens in a new tab), Slack Engineering, 2023, and InfoQ coverage (opens in a new tab), 2024.
  10. Netflix Technology Blog, "The Netflix Simian Army" (opens in a new tab), 2011.
  11. Netflix Technology Blog, "Active-Active for Multi-Regional Resiliency" (opens in a new tab), 2013.
  12. Razorpay, "Enabling merchant success: Razorpay's proactive approach to downtime management" (opens in a new tab).