Kill switch

Also called: ops toggle

Last updated:

A kill switch is a feature flag whose job is to switch a feature off fast. When something goes wrong in production, you set the flag to off and every connected SDK serves the fallback on its next evaluation, within seconds, with no deployment, rebuild, or rollback.

When you reach for a kill switch

Common triggers: a third-party dependency starts timing out, a new feature spikes database load, or a bug surfaces only under production traffic. Wrapping risky or resource-heavy behavior in a flag means the mitigation is a single switch rather than an incident-length revert. Teams often pair a kill switch with a percentage rollout so they can both ramp exposure up and cut it to zero instantly. For a fuller walkthrough of what to wrap and how to choose a fail-safe default, see using a kill switch in production.

Kill switch vs rollback

A rollback reverts a deployment: it is slower (rebuild and redeploy), coarse (it reverts everything in that release, including the working parts), and risky during an incident. A kill switch is scoped to one feature and takes effect on the next flag evaluation. The new code stays in the binary, and no traffic executes it, so you can triage the root cause without the clock running.

Want the full picture? Read the concept guide: What are feature flags? →

Try it in your own app

The Free plan covers 10 flags and 2 environments. No credit card, no demo call — sign up and ship.