> Term
feature flag
A configuration toggle that allows teams to enable, disable, or test specific code paths in production without deploying new code.
Detailed Explanation
A configuration toggle that allows teams to enable, disable, or test specific code paths in production dynamically, without requiring a new code deployment.
They decouple code deployment from feature release, enabling safe practices like canary rollouts, A/B testing, and instant kill switches for broken functionality.
Why It Matters
It vastly reduces deployment risk. If a newly launched feature causes an incident, it can be turned off in seconds without a stressful rollback.
Common Failure Mode
Practical Example
Production Manifestation
A configuration dashboard (like LaunchDarkly) and conditional code blocks littered throughout the codebase.
Frequently Asked Questions
What is feature flag in short?
A configuration toggle that allows teams to enable, disable, or test specific code paths in production without deploying new code.
What is the most common failure mode?
Teams never clean up old feature flags, leaving hundreds of dead toggle paths in the code that make debugging a nightmare.
AI Summary
A configuration toggle that allows teams to enable, disable, or test specific code paths in production without deploying new code. It vastly reduces deployment risk. If a newly launched feature causes an incident, it can be turned off in seconds without a stressful rollback.
