Vibe Engines
YouTube

Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path

FDE · Deployment

Bound the Blast Radius.

Every release is a bet that the change is good. Sometimes you lose — a bug ships. The question that decides how much it costs isn’t whether you had bugs; it’s how many users were exposed before you caught it. Push to everyone at once (big-bang) and a bad release hits your whole user base. Roll it out to 1% first (a canary), watch your monitoring, and a bad release hits a hundredth of them before you roll back. The catch: the safer strategies take more stages, so they’re slower to reach everyone. Pick a strategy, ship a bug, and watch the blast radius — the deployment-safety trade-off every FDE makes, made playable.

big-bang → pilot → phased → canary · smaller first cohort = smaller blast · but more stages = slower
blast radius

How many users a bad release affects before it’s caught and rolled back. The thing a rollout strategy bounds.

canary

Release to a tiny cohort (e.g. 1%) first, watch the metrics, then widen only if it’s healthy.

phased rollout

Widen in steps (10% → 40% → 100%), pausing to check health between each stage.

rollback

Reverting to the last good version fast — what turns a caught bug from a disaster into a footnote.

rollout.js — expose a little, watch, then widen
Pick a strategy
1,000 users. Choose how to roll out the change, decide whether this release has a bug, then Deploy. If it’s buggy, your monitoring catches it in the first cohort — so the blast radius is the size of that first cohort. Smaller first cohort, smaller blast; but more stages to reach everyone.
—
blast radius
—
protected
—
stages

How it works

The lab is a tiny rollout simulator, and it makes concrete a trade-off that sounds abstract until it’s your bad release. Model the user base as a fixed population and a strategy as a sequence of cohorts — the fractions you expose at each stage. Big-bang is one cohort of 100%; a canary is 1%, then 9%, then 40%, then 50%. Now ship a change. If it’s healthy, every strategy eventually reaches 100% and no one is harmed — the only difference is how many stages it took. But if it’s buggy, the key assumption is that your monitoring catches the problem while the first exposed cohort is live and you roll back the rest. Under that assumption the blast radius equals the size of the first cohort: big-bang exposes everyone at once, so a bug hits 100%; a canary exposes 1%, so the same bug hits 1% and the other 99% are protected by the rollback. That’s a hundredfold difference in damage from the same bug, decided entirely by rollout strategy. The cost of that safety is time: the canary needs four stages of watching to reach everyone, where big-bang is instant. So the real decision is a dial between speed and blast radius, and where you set it depends on the stakes — a reversible cosmetic change can big-bang, but anything touching a customer’s money, data, or core workflow deserves a canary and a fast, rehearsed rollback. Two things make the whole strategy work regardless of which you pick: monitoring good enough to detect the problem in the first cohort (without it, gradual rollout just delays the pain), and a rollback you can execute in seconds (without it, catching the bug early doesn’t help). Gradual rollout, real monitoring, and a rehearsed rollback are three parts of one safety system.

1

A strategy is a sequence of cohorts

Big-bang exposes 100% at once. A canary exposes 1%, then widens. Each strategy reaches everyone eventually — the difference is the first cohort and the number of stages.

2

A healthy release harms no one

If the change is good, every strategy rolls out to 100% cleanly. The only cost of a cautious strategy here is the extra stages it takes.

3

A bug’s blast = the first cohort

When a release is buggy, monitoring catches it in the first exposed cohort and you roll back the rest. So big-bang hits everyone; a canary hits 1% and protects the other 99%.

✓

Trade speed for blast radius

Smaller first cohorts bound the damage but take more stages to reach everyone. The dial is set by stakes — plus the two things that make it all work: monitoring that detects fast, and a rollback you can run in seconds.

Big-bang blast
100% of users
Canary blast
~1% of users
Safety costs
more stages (time)
Requires
monitoring + fast rollback

The code

# A rollout strategy is just a cohort schedule strategies = { "big-bang": [100], "pilot": [5, 95], "phased": [10, 30, 60], "canary": [1, 9, 40, 50], } cohorts = strategies[choice] if release_is_buggy: # monitoring catches it in the first cohort; roll back the rest blast_radius = users * cohorts[0] / 100 protected = users - blast_radius else: blast_radius = 0 # healthy → everyone gets it, no harm stages = len(cohorts) # the speed cost of caution

The picture: a canary, gate by gate

canary, 1,000 users: widen only after a health check 1% · 10stage 1 10% · 100stage 2 50% · 500stage 3 100% · 1,000stage 4 ok?ok?ok? bug → roll back at stage 1blast 10 · protected 990 bug missed until stage 2blast 100 · protected 900 big-bang: one cohort of 100%bug → blast 1,000 · protected 0
The blast radius is the exposure at the moment you notice, not the size of the first cohort as such. The lab assumes you notice in stage 1, so the canary costs 10 users. Notice one gate late and it costs 100. Big-bang has no gate to notice at, so every bug costs everyone.

Worked example: the four strategies, and one late alarm

The lab’s 1,000 users and its four cohort schedules, written as cumulative exposure (the code’s list adds up: canary 1 + 9 + 40 + 50). The fourth column is the lab’s assumption, that the bug is caught in stage 1. The fifth asks what happens if monitoring misses it there and fires one stage later.

StrategyExposure after each stageStagesBlast, caught in stage 1Blast, caught in stage 2
Big-bang100%11,000— (no stage 2)
Pilot5% → 100%2501,000
Phased10% → 40% → 100%3100400
Canary1% → 10% → 50% → 100%410100

Two things stand out. First, a late alarm turns the pilot into a big-bang: its second step is the other 95%, so missing the bug in the pilot means everyone gets it. Second, the canary degrades gently. A miss at stage 1 still caps the damage at 10%, because its later steps are small too. So the shape of the whole schedule matters, not just the first number. If each gate is watched for, say, an hour before widening, the canary reaches everyone three hours after it starts, the phased plan in two, the pilot in one and big-bang at once. That is the speed you pay for the gentler curve.

Cost and trade-offs: speed, damage and machinery

Here Time is how long until everyone has the change, and Space is who a bad release hurts, plus any extra infrastructure it needs.

CaseTimeSpaceWhy
Big-bangInstantEveryone. No extra infraFine for a reversible, low-stakes change. Nothing to catch a bug with.
Pilot or phasedOne watch period per stageThe first cohort, if caught thereA middle setting. Check how big the step after the first one is.
CanaryThe most watch periodsThe smallest cohort. Needs metrics you can split by cohortSmallest damage, but the canary must be big enough to show the bug at all.
Blue-greenInstant switchEveryone at the switch. Two full environmentsNot gradual, but rollback is one switch back to the old environment.
Feature flagDeploy any time; release per userWhoever the flag is on for. Flag code to maintain, then deleteSeparates shipping code from turning it on, so rollback needs no deploy.
Shadow trafficUsers never see the new versionNo users. The mirrored requests cost extra computeCopies real requests to the new version and compares. Cannot safely test writes or what users see.

These combine. One safe path is shadow first, then a flagged canary, then phased widening. Each layer adds machinery, so match the layers to what a bad release would cost.

Common mistakes

  • A canary too small to see the bug

    Say a bug hits 2% of users. The chance that none of the lab’s 10 canary users hits it is 0.98^10 = 81.7%. With 100 users it is 13.3%. The lab assumes detection; real monitoring needs enough traffic in the cohort to make it likely.

  • A canary that is not like your users

    Internal staff, one region or one friendly customer make a convenient first cohort. A bug that only hits mobile users, another locale or the largest accounts sails through, then meets them all at the next step.

  • Watching only error rates

    Many bad releases return 200 OK with the wrong answer. That is especially true of model and prompt changes, which degrade quality without throwing errors. Gate on a business or quality metric as well as on errors and latency.

  • A rollback that cannot go back

    If the new version changed the database schema or wrote data in a new format, the old code may not read it. Split migrations so old and new code both work (expand, migrate, then contract later), and test the rollback before you need it.

  • Watching for too short a time

    Memory leaks, daily batch jobs, cache expiry and traffic peaks all take hours to show. A five-minute watch at each gate only catches bugs that fail at once.

Where this shows up in production and interviews

  • Mobile app stores

    Both major app stores let you release an update to a growing percentage of users and pause it. On mobile there is no instant rollback (users keep what they installed), so staging the release is the main defence.

  • Kubernetes and service meshes

    A Deployment’s rolling update replaces pods a few at a time. Tools such as Argo Rollouts and Flagger go further: they shift a weighted share of traffic, read a metric at each step, and roll back on their own if it gets worse.

  • Model and prompt changes at a customer

    For an FDE, a new model or prompt is a release like any other. Run it in shadow on real traffic, compare outputs, then canary it by user or tenant behind a flag. The quality metric, not the error rate, decides each gate.

  • Interview angle

    “How would you deploy a change to a payments service?” A strong answer names the schedule, what metric each gate checks and for how long, who is in the first cohort, and how rollback works with database changes.

Quick check

1. You ship a buggy release big-bang (100% at once). What is the blast radius?

2. Why does a canary rollout bound the blast radius of a bad release?

3. What two things must be in place for a gradual rollout to actually help?

FAQ

What is a canary deployment?

Releasing a change to a small subset of users first (often 1%) while watching metrics. If the canary cohort stays healthy, you widen the rollout; if it shows problems, you halt and roll back, having exposed only that tiny group. Named for the "canary in a coal mine" — the small cohort is an early warning that bounds a bad release’s blast radius to the canary’s size.

What is the difference between a phased rollout and a big-bang deployment?

Big-bang ships to everyone at once — fastest, but a bad release hits your whole user base before you can react. Phased widens in steps (10% → 40% → 100%), pausing to check health, so a problem caught at 10% affects only that tenth. Phased trades speed for safety: more stages and time, but a bounded blast radius. Big-bang suits low-risk reversible changes; phased suits consequential ones.

Why does a rollout strategy need monitoring and fast rollback?

Because gradual rollout only helps if you notice the problem while it’s contained and can undo it fast. Without monitoring, a bad first-cohort release goes undetected and you widen anyway — a canary becomes a slow path to harming everyone. Without fast rollback, detecting doesn’t stop it. Gradual rollout, first-cohort monitoring, and a rehearsed one-command rollback are three parts of one safety system.

How should an FDE choose a rollout strategy at a customer?

By stakes and reversibility. A cosmetic, easily-reversible tweak can big-bang; anything touching money, regulated data, or a core workflow deserves canary/phased. Weigh the customer’s tolerance — early in a deployment, err toward caution, since one visible failure can sink trust. And ensure the prerequisites are real: gradual rollout needs monitoring and a fast, tested rollback in the customer’s environment, which is part of hardening for production.

Keep going

Finished this one? 0 / 61 Labs done
NextConfig Validator Next in “Become a Forward Deployed Engineer” · step 29 of 63

Explore the topic

See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.

More Labs