What is Feature Flag?
A technique that allows enabling or disabling features in production without deploying new code, enabling safe rollouts and A/B testing.
Feature flags (feature toggles) wrap new features in conditional checks that can be toggled on/off remotely. This decouples deployment from release — code can be deployed but hidden until ready, or enabled for specific users/percentages.
Use cases include gradual rollouts, A/B testing, kill switches for problematic features, and subscription-based feature access. Tools include LaunchDarkly, Unleash, and Flagsmith. Clean up old flags to prevent technical debt.