Feature Flag
PronunciationFEE-cher FLAG
Definition
A switch in the code that turns a feature on or off without a new deployment, often for a small group of users first.
Where you hear it
Gradual releases and A/B testing.
Examples
The new checkout is behind a feature flag for 10% of users.
If something breaks, just switch the flag off.
The new dashboard sits behind a feature flag that only the internal team can see.
Common mistake
Never removing old flags. They pile up and make the code confusing.
Don't confuse with
A feature flag controls functionality dynamically without a deployment, while a branch is a separate line of development in version control that requires a merge and deployment to reach production.
Say it at work
- In a meeting or chat
Let us wrap this new UI component behind a feature flag before we merge it.
- In an email or ticket
Please ensure the feature flag is enabled for all beta testers in the upcoming release.
Keep exploring
More in DevOps & Cloud