Skip to content
All concepts

Concept

Kill switch

A kill switch is a control that turns a feature or code path off everywhere, quickly, without deploying anything. It is the fastest way to stop damage when the cause is a piece of code and not a machine. It is code too, so it has to be tested before the day it is needed.

Watch the kill switch turn the failing path off on every server within moments. A live step from the lesson Feature flags & kill switches (Deployments & config rollout). Timings and counts are illustrative.

Where you'll see it

Sources: Google Cloud incident report, 12 June 2025 ↗ · Feature Toggles (aka Feature Flags), Pete Hodgson on martinfowler.com ↗ · Report a problem

The definition is in our own words; the sources are those of the lesson Feature flags & kill switches.