How can a team release a high-risk feature without a full redeploy being the only way to undo it when something goes wrong?
When to use it
Payments, authentication, data migrations and other high-blast-radius changes. Features with unknown load or third-party dependencies. Launches where rollback by redeploy would take too long.
Where it comes from
Kill switches built on feature toggles became common in continuous-delivery and site-reliability practice in the 2010s. There is no single originator that I can name with confidence.
Sheet 2/4
How it works
The new code path is wrapped in a runtime flag controlled outside the deployment, so turning it off restores the previous behaviour in seconds. Alongside the flag, the team defines what normal looks like, such as error rate, latency and conversion, and names a caretaker who watches those signals during the first hours or days. If an agreed trigger fires, the caretaker flips the switch without waiting for a meeting. The flag is removed once the feature is stable.
You need
A feature-flag mechanism, defined health metrics and alert thresholds, a named caretaker and a documented off-state.
You get
A flagged feature with a tested off-path, a monitoring plan and a rule for who can flip the switch and when.
Sheet 3/4
Case
Illustrative case
Dockyard Retail is replacing its checkout payment provider. Engineers wrap the new integration in a flag defaulted to 5% of traffic. Maria, the named caretaker, watches payment success rate and p95 latency on a shared dashboard for the first 48 hours, with a rule: below 97% success for ten minutes, switch off. On day two success drops to 94% for one card type. Maria flips the flag; traffic returns to the old provider in under 30 seconds. The team fixes a tokenisation bug and relaunches the following week.
A fictional company used to explain the model.
Sheet 4/4
Caution
When to avoid it
Changes that alter data irreversibly, such as destructive schema changes, where turning the flag off does not undo the damage.
Trivial changes where the flag adds clutter.
Common mistakes
Never testing the off-state.
Having a flag but no named owner with authority to use it.
Leaving old flags in the code for years.
Using a kill switch on changes that cannot be undone by switching off.
Known weaknesses
Does not undo irreversible data changes.
Accumulated flags create technical debt and testing combinations.
Depends on one person being available and alert.
The flag system itself becomes a critical dependency.
How to apply it in 6 steps
How to apply it
Feature flag kill switch
6 steps
01of 6
Step 1 of 6: Wrap the feature in a flag
Put the new behaviour behind a runtime flag that can be changed without deploying.
01
02of 6
Step 2 of 6: Test the off-path
Verify that switching off fully restores the previous behaviour.
02
03of 6
Step 3 of 6: Define health signals
Agree the metrics and thresholds that count as a problem.
03
04of 6
Step 4 of 6: Name a caretaker
Assign one person authorised to flip the switch and watch the first usage.
04
05of 6
Step 5 of 6: Release gradually
Turn the flag on for a small share of users and widen as signals stay healthy.
05
06of 6
Step 6 of 6: Retire the flag
Remove the flag and old code path once the feature is stable.
06
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 6 steps
01
Wrap the feature in a flag
Put the new behaviour behind a runtime flag that can be changed without deploying.
02
Test the off-path
Verify that switching off fully restores the previous behaviour.
03
Define health signals
Agree the metrics and thresholds that count as a problem.
04
Name a caretaker
Assign one person authorised to flip the switch and watch the first usage.
05
Release gradually
Turn the flag on for a small share of users and widen as signals stay healthy.
06
Retire the flag
Remove the flag and old code path once the feature is stable.
Which decisions it helps with
Decision profile
Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.
IIIResources required
TimeSeveral daysThe questionHow much time can you spend on this?Assessment · Several days · confidence 75 %
PeopleA small group (2 to 8)The questionHow many people will take part?Assessment · A small group (2 to 8) · confidence 82 %
DataData collected for the purposeThe questionWhat data do you have available?Assessment · Data collected for the purpose · confidence 90 %
ExpertiseWorks best with a facilitatorThe questionDoes anyone have experience with methods like these?Assessment · Works best with a facilitator · confidence 43 %
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 97 %
FrequencyOccasionallyThe questionIs this a one-off decision or something you expect to repeat?Assessment · Occasionally · confidence 96 %
The team’s own knowledge is enoughThe questionCan you speak to customers, users or people outside your organisation?Assessment · The team’s own knowledge is enough
View full profile
Preliminary assessment: few details on this model card have been verified.
IIdentity
Type of tool
Phased processlikely
The questionWhat kind of tool is it?Assessment · Phased process · 78 %
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 · 87 %
What it applies to
Processes and operationslikelyalso: a product or service (37 %)
The questionWhat is the decision about?Assessment · Processes and operations · 63 % · also A product or service · 37 %
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 orderlikely
The questionWhat kind of tool is it?Assessment · A sequence of phases completed in order · 78 %
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 98 %
Top-downBottom-upThe questionShould leadership set the direction, or should the answer come from the people doing the work?Assessment · Mostly bottom-up · confidence 51 %
PeopleProcessesThe questionIs this mainly a people problem or a process problem?Assessment · Mostly processes · confidence 92 %
Generate optionsNarrow down optionsThe questionDo you need to generate more options or narrow them down?Assessment · Mostly narrow down options · confidence 34 %
Step-by-step analysisIntuition and experienceThe questionWould you rather work through the evidence step by step or draw on the group’s experience?Assessment · Mostly analysis · confidence 74 %
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 28 %
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 69 %
Improve what we haveFundamental changeThe questionDo you want to improve what you have or change it fundamentally?Assessment · Improve what we have · confidence 63 %
Inside the organisationOutside the organisationThe questionWhere do you expect to find the answer, inside your organisation or in the market?Assessment · Inside the organisation · confidence 72 %
Understand firstAct nowThe questionDo you need to understand the situation first or act now and learn as you go?Assessment · Mostly act now · confidence 71 %
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 · 95 %
The future is uncertain, and our plans keep falling apartThe questionWhich of these situations sounds familiar?Assessment · a situation I face → useful · 86 %
Applicable traits
How it supports actionDecide what comes firstThe questionWhat do you need in order to act?Assessment · Decide what comes first · 68 %
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.
Harmes, R. (2009). Flipping Out. code.flickr.com.Posted 2 December 2009: early public description of feature flags and 'flippers' at Flickr, where everything ships from head and unfinished features are switched off by configuration.View source: Flipping Out (opens in a new tab) ↗
Fowler, M. (2010). Feature Flag (originally 'FeatureToggle'). martinfowler.com bliki.Dated 29 October 2010: describes flags in a configuration file that the running application checks, and advises that release flags be a last resort.View source: Feature Flag (originally 'FeatureToggle') (opens in a new tab) ↗
Hodgson, P. (2017). Feature Toggles (aka Feature Flags). martinfowler.com.Describes long-lived 'Kill Switches' that let operators disable non-vital functionality; the 2017 version of an article first published in 2016, not proven to be the originator.View source: Feature Toggles (aka Feature Flags) (opens in a new tab) ↗
Critique
Rahman, M. T., Querel, L., Rigby, P. C. and Adams, B. (2016). Feature Toggles: Practitioner Practices and a Case Study. Proceedings of the 13th International Conference on Mining Software Repositories (MSR '16), pp. 201-211.Study of 39 Google Chrome releases: toggles let operators quickly disable a misbehaving feature, but 'they also introduce technical debt and additional maintenance for developers'.View source: Feature Toggles: Practitioner Practices and a Case Study (opens in a new tab) ↗
Practical guide
contributors, W. (n.d.). Feature toggle. Wikipedia.States that toggles can act as operational controls: 'a kill switch lets operators disable a feature at runtime, for example to mitigate an incident or reduce load'.View source: Feature toggle (opens in a new tab) ↗