Glossary

Feature Flag

A feature flag is a switch in code that turns a feature on or off at runtime, without deploying a new version of the application.

Feature Flag

What Is a Feature Flag?

A feature flag is a switch in code that turns a feature on or off at runtime, without deploying a new version of the application. It is also called a feature toggle. The flag wraps new code in a condition, and a configuration value decides whether that code runs for a given user.

Why Feature Flags Matter

Feature flags separate deployment from release. Code can reach production switched off, days or weeks before users see it. If the feature misbehaves after it is switched on, the team turns the flag off in seconds instead of rolling back a deployment. Unfinished work can be merged to the main branch behind a flag, which removes long-lived feature branches and the merge conflicts they cause.

How a Feature Flag Works

In code, a flag is a conditional: if (flags.isEnabled("new-checkout")) { ... } else { ... }. The flag value comes from a configuration file, a database, or a feature management service, and it can change while the application runs.

Flags are commonly grouped by purpose:

  • Release flags hide unfinished features and are removed after launch.
  • Experiment flags show different variants to different users for A/B tests.
  • Ops flags act as kill switches for expensive or risky functionality.
  • Permission flags enable features for specific customers or plans.

A gradual rollout uses a percentage rule: the flag is on for 5% of users, then 25%, then everyone. In the software delivery lifecycle, flags sit after deployment and control the release step.

Feature Flag vs Canary Release

A canary release sends a share of traffic to a new version of the whole application at the infrastructure level. A feature flag switches one feature inside a version that all users already run.

How Oobeya Uses Feature Flags

Oobeya does not manage feature flags. It measures the delivery outcomes that flags are meant to improve. Deployment frequency, change failure rate, and time to restore are calculated from the pipelines marked as production. They appear in the Deployments (DORA) tab of Coding, Review & Delivery.

Frequently Asked Questions

Are feature flags technical debt?

A flag that stays in the code after its feature has fully launched is technical debt. Teams limit this by giving each release flag an owner and a removal date.

Do feature flags replace rollbacks?

Flags replace rollbacks for problems inside the flagged feature. A defect outside the flag, such as a broken database migration, still requires a rollback or a fix-forward deployment.

Turn Engineering Terms Into Actionable Visibility
Move from definitions to real delivery, quality, workflow, and AI-assisted development signals.
Talk to our experts and see how Oobeya connects the metrics behind your engineering organization.