How can a team release a risky change without exposing all users at once and with a fast way to turn it off?
When to use it
For changes with technical or user risk such as new checkout flows, pricing or infrastructure swaps. Also when product wants to test with a segment before launch, or when a kill switch is needed.
Martin Fowler
Sheet 2/4
How it works
Code for the new feature ships dark behind a flag, separating deployment from release. The flag is turned on for internal users, then a small percentage or segment, and exposure grows in stages. At each stage, error rates, latency and business metrics are compared with the control group, and the team either advances, holds or switches the flag off. Once at 100% and stable, the flag and the old code path are removed.
You need
A flagging system, per-stage success and rollback metrics, segment definitions, and monitoring dashboards.
You get
A staged rollout plan, a monitored release at 100%, and the removal of the flag.
Sheet 3/4
Case
Illustrative case
StreamNest's mobile team releases a redesigned search. They ship it behind a flag on Monday, enable it for employees (200 users), then 1% on Tuesday. Error rate is flat, but search latency rises 15% on older Android devices, so they hold at 1% while engineers fix an indexing call. After the fix they move to 5%, 25% and 50% over a week, each step requiring latency within 5% and conversion not lower than control. At 100% they delete the flag two sprints later, avoiding leftover dead code.
A fictional company used to explain the model.
Sheet 4/4
Caution
When to avoid it
For trivial changes where flag overhead exceeds risk, or for changes that cannot coexist with the old version, such as irreversible data migrations.
It also needs adequate traffic and monitoring to detect problems.
Common mistakes
Leaving old flags in the code for months.
Advancing on a timetable rather than on metrics.
Testing too small a sample to detect problems.
Having no tested kill switch.
Forgetting that flag combinations multiply test cases.
Known weaknesses
Flags left in place create technical debt.
Needs good monitoring and enough traffic to detect small effects.
Multiple flags interact and complicate testing.
Some changes, such as schema changes, cannot be toggled.
How to apply it in 5 steps
How to apply it
Progressive delivery with feature flags (percentage rollout)
5 steps
01of 5
Step 1 of 5: Define goals and thresholds
Set the success metrics and rollback conditions for each stage.
01
02of 5
Step 2 of 5: Ship behind a flag
Deploy the code dark with the flag off for everyone.
02
03of 5
Step 3 of 5: Start with a canary group
Enable for internal users or a small low-risk segment and watch the metrics.
03
04of 5
Step 4 of 5: Expand by gates
Increase exposure only when each gate's criteria are met; hold or roll back otherwise.
04
05of 5
Step 5 of 5: Release fully and clean up
Move to 100%, then remove the flag and the old code path.
05
Click to unfold
Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.
View all 5 steps
01
Define goals and thresholds
Set the success metrics and rollback conditions for each stage.
02
Ship behind a flag
Deploy the code dark with the flag off for everyone.
03
Start with a canary group
Enable for internal users or a small low-risk segment and watch the metrics.
04
Expand by gates
Increase exposure only when each gate's criteria are met; hold or roll back otherwise.
05
Release fully and clean up
Move to 100%, then remove the flag and the old code path.
Which decisions it helps with
Decision profile
A phased process to take action on processes and operations.
Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.
IIdentity
Type of tool
Phased processvery likely
The questionWhat kind of tool is it?Assessment · Phased process · 93 %
Decision stage
Plan the work, roles and deadlinesvery likely
The questionWhat stage of the decision are you at?Assessment · Plan the work, roles and deadlines · 94 %
What it applies to
Processes and operationslikelyalso: a product or service (36 %)
The questionWhat is the decision about?Assessment · Processes and operations · 64 % · also A product or service · 36 %
Discipline
Agile and software developmentvery likely
The questionWhich discipline does it come from?Assessment · Agile and software development · 100 %
What it produces
A sequence of phases completed in ordervery likely
The questionWhat kind of tool is it?Assessment · A sequence of phases completed in order · 93 %
IIIResources required
TimeWeeks or monthsThe questionHow much time can you spend on this?Assessment · Weeks or months · confidence 53 %
PeopleA small group (2 to 8)The questionHow many people will take part?Assessment · A small group (2 to 8) · confidence 80 %
DataData collected for the purposeThe questionWhat data do you have available?Assessment · Data collected for the purpose · confidence 75 %
ExpertiseWorks best with a facilitatorThe questionDoes anyone have experience with methods like these?Assessment · Works best with a facilitator · confidence 72 %
Time horizonDays or weeksThe questionHow far ahead do you need to plan?Assessment · Days or weeks · confidence 99 %
ScopeOne teamThe questionWho will this decision affect?Assessment · One team · confidence 89 %
FrequencyOccasionallyThe questionIs this a one-off decision or something you expect to repeat?Assessment · Occasionally · confidence 94 %
IITen axes
The dot shows which end the model favours. A hollow dot means no clear preference.
DirectionExecutionThe questionAre you setting direction or improving day-to-day operations?Assessment · Execution · confidence 97 %
Top-downBottom-upThe questionShould leadership set the direction, or should the answer come from the people doing the work?Assessment · Mostly bottom-up · confidence 44 %
PeopleProcessesThe questionIs this mainly a people problem or a process problem?Assessment · Processes · confidence 85 %
Generate optionsNarrow down optionsThe questionDo you need to generate more options or narrow them down?Assessment · Mostly narrow down options · confidence 47 %
Step-by-step analysisIntuition and experienceThe questionWould you rather work through the evidence step by step or draw on the group’s experience?Assessment · Step-by-step analysis · confidence 60 %
A strict sequence of stepsA flexible frameworkThe questionWould you prefer a precise set of steps or a framework you can adapt?Assessment · Both equally · confidence 35 %
Protect what we haveTake a riskThe questionDo you need to protect what you have or take a chance on something new?Assessment · Mostly protect · confidence 86 %
Improve what we haveFundamental changeThe questionDo you want to improve what you have or change it fundamentally?Assessment · Improve what we have · confidence 62 %
Inside the organisationOutside the organisationThe questionWhere do you expect to find the answer, inside your organisation or in the market?Assessment · Mostly inside · confidence 69 %
Understand firstAct nowThe questionDo you need to understand the situation first or act now and learn as you go?Assessment · Mostly act now · confidence 73 %
IVUseful when
We make too many mistakes, or one mistake could be very costlyThe questionWhich of these situations sounds familiar?Assessment · a situation I face → useful · 92 %
The future is uncertain, and our plans keep falling apartThe questionWhich of these situations sounds familiar?Assessment · a situation I face → useful · 87 %
Applicable traits
How it supports actionDecide what comes firstThe questionWhat do you need in order to act?Assessment · Decide what comes first · 71 %
How was this profile calculated?
An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.
A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.
On the axes, mixed means the model favours neither end.
Humble, J. and Farley, D. (2010). Continuous Delivery. Addison-Wesley Professional.Foundational book on release practices that underpins gradual rollouts (publisher page: Published Jul 27, 2010, ISBN-13 978-0-321-60191-9).View source: Continuous Delivery (opens in a new tab) ↗