🚩 DevOps & Deployment · Delivery & Deployment
Feature Flags
Control feature availability independently from deployment.
Deploy code without exposing unfinished behavior to everyone.
Enable a new checkout flow for internal users first.
💡 It is like a light switch for each feature: the wiring is already in the wall, but you choose when and for whom to turn it on.
💡 Why it matters
Deploying code and releasing a feature do not have to happen at the same moment. A feature flag lets you ship code that stays hidden until you flip it on, so you can release to a small group first, watch how it behaves, and turn it off instantly if something goes wrong. This separates the technical act of deploying from the business decision of launching.
🛠️ How to achieve it
⚠️ Signs of trouble
- •Unfinished features are visible to everyone the moment code ships.
- •Turning a feature off requires a full emergency release.
- •Old, forgotten flags clutter the code for years.
- •There is no way to try a change on a small group first.
🎯 Quick check
Score: 0/3Three questions to test the idea.
1. What do feature flags separate?
Answer: Deploying code from releasing a feature to users
A flag lets you ship code while deciding separately when and for whom to turn the feature on.
2. What is a safe way to launch a risky new feature?
Answer: Turn it on for a small group first, then widen
A gradual rollout lets you watch behaviour on a few users before exposing everyone.
3. What problem does leaving old flags in the code cause?
Answer: Flag debt: clutter nobody is sure is safe to remove
Unused flags should be retired once a feature is fully live, or the code fills with risky dead switches.
