Interview Prep/SRE & Reliability/Release Engineering & Reliability Patterns

What are feature flags and how do they improve reliability?

BeginnerConceptRelease Engineering & Reliability Patterns
Answer

Feature flags are runtime switches that turn code paths on or off without a deploy. They separate deploying code from releasing a feature: code ships dark, then the flag ramps to internal users, 1%, 10%, 100%. If something goes wrong, turning the flag off is a seconds-long mitigation, much faster than a rollback. Flags also enable kill switches for expensive features during overload. Risks: flag debt (old flags never removed) and untested flag combinations.

All SRE & Reliability questions

More on Release Engineering & Reliability Patterns