Feature Flags
Feature flags are runtime controls that select which behavior a deployed application uses. They let you release a change to chosen users, limit exposure, or disable behavior without deploying new code.
itDevOps and software delivery | OpenSkills.info
Course pathWalk it in order
Look it upDip in anytime
Go furtherLeaves this page
Intro
Feature Flags
A deployment puts code into an environment. A release exposes behavior to users. Feature flags separate those events.
You can deploy new and old behavior together, then choose which behavior runs. That choice happens at runtime. It can apply to everyone, a named group, a percentage, or one evaluation context.
This separation gives you a smaller control surface than another deployment. It does not make the change safe by itself. You still need tests, observable results, an owner, and a cleanup decision.
The core mental model
A feature flag is a named decision inside deployed software.
flag key + default value + evaluation context
|
v
evaluation
|
v
value or named variant
|
v
code behavior
The flag key identifies the decision. The default value protects the application when evaluation fails. The evaluation context describes the subject, such as a user, account, service, or request.
Rules use that context to select a value. A Boolean value chooses between enabled and disabled behavior. A string, number, or structured value can select a named variant or configuration.
The code that asks for a value is the evaluation point. Keep it close to the boundary that chooses behavior. Keep the rule that selects an audience in the flag system. This separates the decision point from decision logic.
The control plane and data plane
Continue the course
This section is part of the paid course.
See pricing to subscribe, or log in if you already have access.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
Sources
- https://openfeature.dev/
Supports
- Feature flags as runtime controls that enable, disable, or change behavior
- OpenFeature as a vendor-neutral feature flagging specification
- https://openfeature.dev/specification/glossary/
Supports
- Feature flag, evaluation, evaluation context, targeting, targeting key, rule, and variant definitions
- Fractional evaluation using a context property
- Client-side and server-side SDK paradigms
- https://openfeature.dev/specification/sections/flag-evaluation/
Supports
- Developer-facing evaluation API
- Typed values, required defaults, optional evaluation context, and resolution details
- https://openfeature.dev/specification/sections/providers/
Supports
- Provider as the adapter between evaluation calls and a flag management system
- Providers wrapping SDKs, REST clients, or runtime configuration
- Default values and typed resolution methods
- https://openfeature.dev/docs/reference/concepts/provider/
Supports
- Provider abstraction and replacement without major application refactoring
- Default return behavior when no provider is configured or evaluation errors occur
- https://martinfowler.com/articles/feature-toggles.html
Supports
- Runtime behavior changes without a code deployment
- Release, experiment, operational, and permission toggle categories
- Separation of evaluation points from routing decision logic
- Testing complexity, configuration visibility, placement choices, and carrying cost
- Need to constrain and remove temporary toggles
- https://learn.microsoft.com/en-us/devops/operate/progressive-experimentation-feature-flags
Supports
- Separation of deployment from feature exposure
- Runtime exposure to an individual, group, or all users without redeployment
- Use of flags beyond user-interface changes
- https://learn.microsoft.com/en-us/azure/architecture/guide/multitenant/approaches/deployment-configuration
Supports
- Progressive exposure by tenant or user without redeploying
- Separation of feature rollout from license entitlement enforcement
- Temporary flags instead of specialized tenant deployments
- https://docs.aws.amazon.com/prescriptive-guidance/latest/micro-frontends-aws/feature-flags.html
Supports
- Coordination of independently released components
- Centralized decisions driving application behavior
- Testing cost, troubleshooting complexity, bundle growth, and technical debt
- https://docs.getunleash.io/guides/feature-flag-best-practices
Supports
- Runtime control, short-lived flags, unique names, and local evaluation
- Server-side evaluation for sensitive context and client-side result delivery
- Cached configuration, availability choices, monitoring, and cleanup
- https://docs.getunleash.io/guides/manage-feature-flags-in-code
Supports
- Centralized keys and narrow SDK abstraction
- One evaluation per request and propagation of the result
- Testing both branches and removal after full rollout
- https://docs.getunleash.io/concepts/feature-flags
Supports
- Environment-specific activation strategies and variants
- Release, experiment, operational, kill-switch, permission, and sunset purposes
- Define, Develop, Production, Cleanup, and Archived lifecycle
- Naming, stale-state, and archival behavior
- https://github.com/sindresorhus/awesome
Supports
- Discovery of the Awesome Developer-First list
- https://github.com/agamm/awesome-developer-first
Supports
- Dedicated Feature Flags section
- Discovery of Unleash, Flagsmith, and ConfigCat
- https://docs.flagsmith.com/managing-flags/core-management
Supports
- Boolean and multivariate feature management
- Per-environment values, segment overrides, server-side restrictions, and archival
- https://configcat.com/docs/targeting/targeting-overview/
Supports
- Targeting rules, user objects, percentage options, and fallback values
- Phased rollout and stable audience selection concepts
