Feature flag
Also called: feature toggle, feature switch, feature gate
Last updated:
A feature flag is a conditional in your code whose value comes from remote configuration instead of being hard-coded, so you can change what the application does without shipping a release. Some teams call it a feature toggle. Feature flagging is the habit built on top of it: new work goes behind a flag, reaches production switched off, and gets released later by editing the flag. For each user, an SDK evaluates the flag and returns a variation. Boolean, string, number or JSON.
How a feature flag works
if (client.boolVariation('new-checkout', context, false)). Featureflip's server SDKs keep every flag's configuration in memory and evaluate it on the spot. No network call per check. The lookup takes well under a millisecond, and a change made in the dashboard streams out to long-running server processes, so the next evaluation on every server already uses it. Browser and mobile SDKs work the other way round. They receive values the server has already evaluated for their user, which keeps targeting rules off the device.A feature flag example
const layout = client.stringVariation('checkout-layout', { user_id: user.id, plan: user.plan }, 'classic')In the dashboard, a targeting rule keeps every account whose plan is enterprise on classic, since their admins trained support staff on the old screens. Everyone else falls through to a 20% rollout of single-page. Sticky bucketing hashes the user ID, so one person sees the same layout on every visit. The flag's Analytics tab then counts the evaluations each layout got and the rule that served them. Going from 20% to 50%? A dashboard edit, with no release.Why teams use feature flags
What feature flags cost
Want the full picture? Read the concept guide: What are feature flags? →
Related terms
Feature toggle
Feature toggle is another name for a feature flag, a runtime switch that turns functionality on or off without a code deploy. The terms are interchangeable.
Percentage rollout
A percentage rollout serves a feature to a defined share of users, chosen by a deterministic hash, so the same users stay in the cohort as you ramp the percentage up.
Kill switch
A kill switch is a feature flag used to disable functionality instantly in production: flip it off and every SDK stops running the risky code path within seconds, no redeploy required.
Try it in your own app
The Free plan covers 10 flags and 2 environments. No credit card, no demo call — sign up and ship.