Skip to content

What is a kill switch in feature flags?

Updated November 15, 2026

A kill switch is a long-lived feature flag that turns a feature, integration or expensive code path off quickly, without a deploy, so a team can limit the damage during an incident.

How is a kill switch different from other flags?

Pete Hodgson's article on Martin Fowler's site describes most ops toggles as short-lived, with "a small number of long-lived 'Kill Switches'" that let operators gracefully degrade non-vital functionality under unusually high load (Feature Toggles). LaunchDarkly describes kill switch flags as "permanent boolean flags with two variations", sometimes called circuit breaker flags (kill switch flags); Unleash has a kill switch flag type with a permanent expected lifetime. The on/off direction varies: in LaunchDarkly the kill switch serves "enabled" while the feature runs, while some teams name the flag after the shutdown (ops_disable_recommendations), so "on" means off.

Release flag Kill switch
Lifetime Removed after the rollout Permanent
Normal state Off, then on Feature running; flipping it turns the feature off
Who flips it The team releasing Whoever is on call
Stale-flag reports Should flag it when old Should ignore it

How do I make sure a kill switch works?

  • Choose the default deliberately: if the flag can't be evaluated, the SDK returns the default you pass in code. Usually that should keep the feature running, so an outage of the flag service doesn't turn it off; default to off only when the feature itself is the risk.
  • Know how fast it applies: a flag change reaches servers after the SDK's next update; see local vs remote evaluation and, for serverless functions, feature flags in AWS Lambda.
  • Test both positions regularly, so the "off" path still works when you need it (testing code that uses flags).