Lesson 5 of 9 · 27m
Rings, Percentages, and Kill Switches That Actually Work
Progress through controlled exposure rings, separate rollout from deployment, and build kill switches whose failure behavior has been rehearsed.
Progressive delivery is not 1%, then 100% with optimism in between. It is exposure management. You are buying information with small amounts of risk, then spending that information to justify the next ring. If the first ring does not teach you anything and the kill switch has never been tested, you are just rolling dice slowly.
Design rings around risk and feedback
Typical rings look like this:
ring 0 CI and contract tests
ring 1 internal staff, production data, low volume
ring 2 friendly beta tenants or designated cohorts
ring 3 5-25% of eligible traffic
ring 4 50-100% with monitoring windows
ring 5 default path, legacy removal scheduledEach ring needs a promotion signal: error rate, latency, conversion, support tickets, infrastructure saturation, correctness reconciliation. A time-based rule — leave it at 10% for a day — is only useful if meaningful traffic passes through the path during that day.
Deployment and release are different events
Ship code dark before exposing users:
deploy v42 contains new implementation, flag false everywhere
enable staff validates behavior under real production data
enable ring exposes bounded population
increase controlled promotion based on measurements
disable release rollback without redeploying
remove cleanup after stable defaultThis separation is the entire point. If enabling the flag requires a deploy, you have a configuration change, not progressive delivery. If rollback requires a database migration reversal, your kill switch is incomplete.
Kill switches must know what they kill
A good operational flag has precise semantics:
key: ingest.enrich-with-llm
type: operational
on: run enrichment workers normally
off: skip enrichment, mark records enrichment_pending
unsafe_middle: do not partially drain queue without worker coordinationOff must be a valid product state. Users should see a degraded but coherent result, not a spinner forever or a half-written object. For migrations, the old path must remain operationally viable until final cutover; deleting dependencies early turns the kill switch into theater.
Rehearse negative control
Before broad exposure, toggle the flag off in staging or a small production cohort and observe the exact transition. Check in-flight requests, queued jobs, cached client behavior, webhooks, retries, and downstream reporting. If off causes more damage than on, your blast-radius plan has to reflect that.
Watch denominator effects
A 1% rollout can still be dangerous if the 1% contains your largest tenant, a traffic spike, or all mobile clients on a broken version. Segment metrics by platform, tenant size, region, and app version. One bad ring member can dominate the signal and convince you the feature is fine because averages look calm.
Field notes
- Percentage increases should be deliberate actions with an audit trail, not edits made casually during unrelated incidents.
- Ring definitions need entry criteria;
beta usersis meaningless if nobody maintains enrollment. - Do not keep a rollout paused indefinitely. Paused half-migrations accumulate hidden coupling.
- A kill switch that wakes up the entire on-call organization is not a small blast radius, even if it avoids data loss.
Was this lesson helpful?