Keel

Do small teams need feature flags?

By the Keel team · Last checked · 5 min read

Short answer

Yes, once you have paying customers. Feature flags separate deploying code from releasing it, so you can merge unfinished work switched off, enable a feature for one customer first and switch off a broken feature without a redeploy. A small team can start with a few flags in config or a database table, without buying a tool.

What problems do feature flags solve?

Feature flags solve three problems: long-lived branches, risky launches and bad releases.

Martin Fowler describes release toggles as a way to ship incomplete and untested code paths to production as latent code, so unfinished work can be merged without being visible.

  • Long-lived branches: merge small changes daily, hidden behind a flag, instead of keeping a branch open for weeks.
  • Risky launches: turn a feature on for your own team, then one customer, then everyone.
  • Bad releases: switch the feature off instead of rolling back the whole deployment, which also undoes unrelated fixes shipped with it.

What are the different kinds of feature flag?

Fowler sorts toggles into four kinds by how long they live and how dynamic the decision is: release, experiment, ops and permissioning.

Knowing which kind you are adding tells you how long it should exist.

Four kinds of flag, as Martin Fowler classifies them
KindWhat it doesHow long it should live
ReleaseHides unfinished or untested code in productionA week or two, according to Fowler
ExperimentSplits users for an A/B or multivariate testLong enough for the result to mean something
OpsControls operational behaviour, including kill switches for non-critical featuresMostly short, a few kill switches stay
PermissioningChanges what certain users receive, such as a paid tierCan last years

Most small teams need release flags and perhaps one or two kill switches. Experiments and permissions can wait until you have the traffic or the pricing tiers to justify them.

What is a simple way to start with feature flags?

Store flags in a database table or a config file, read them at runtime, and support on and off both globally and per customer account.

That covers the first year of most products and needs no new vendor.

  1. Create a feature_flags table with a name, a global on or off value, an owner and a remove-by date.
  2. Add an optional table of per-account overrides, so one customer can be switched on first.
  3. Log who changed a flag and when, even if it is just a row in an audit table.
  4. Write one function and use it everywhere, so flag logic never spreads through the code.

Fowler notes that static configuration managed in source control moves through your pipeline like any other change, while dynamic options such as a database suit flags that need to change quickly. A kill switch belongs in the second group.

What does a simple flag check look like?

A flag check is one small function that looks up the flag, prefers the account's own setting, falls back to the global setting and defaults to off if it cannot read anything.

Keep it boring.

type Flag = { global: boolean; accounts: Record<string, boolean> };

export function isEnabled(flags: Map<string, Flag>, name: string, accountId: string): boolean {
  const flag = flags.get(name);
  if (!flag) return false; // unknown or unreadable: stay off
  return flag.accounts[accountId] ?? flag.global;
}

Cache the flag set for a short time so a lookup is not a database query on every request. Defaulting to off means a broken flag store hides new features instead of exposing unfinished ones.

How do flags help with releases on AWS?

Flags let you release in stages and undo one feature in seconds.

A deployment health check tells you whether tasks start and respond; a flag lets you act when a feature misbehaves after the tasks are healthy.

A staged release behind a flag
StageWho sees itWhat to watch before moving on
InternalYour own team's accountErrors in logs, anything obviously broken
BetaOne or two friendly customersSupport messages, error rate for those accounts
GradualA share of accountsError rate and latency against the previous week
EveryoneAll customersThe same, plus a date to remove the flag

Flags sit alongside automatic rollback, not in place of it. ECS can stop and roll back a deployment on a circuit breaker or CloudWatch alarms, and the 2025 announcement of built-in blue/green adds lifecycle hooks for validation. See blue/green or rolling deployments on ECS for how the options fit together, and what a deployment health check should test.

What should a flag never control?

A flag should never control security checks, database schema or billing logic unless both states are tested as carefully as the code itself.

The risk of a flag sitting in the wrong position is too high for these.

  • Security checks: permission rules should not depend on a switch someone can flip.
  • Database schema: a migration must be safe whichever way every flag is set. Running PostgreSQL migrations without downtime explains how.
  • Billing logic: two code paths mean two sets of tests, and a mistake here costs money and trust.

Fowler also warns that per-request overrides, such as a flag set through a URL, widen your attack surface, so keep flag state on the server.

How do you stop old flags piling up?

Give every flag an owner and a removal date, and treat the flag list as inventory with a carrying cost.

Fowler's phrasing is that savvy teams view their toggles as inventory and are proactive in removing the ones they no longer need.

Put the removal task on the backlog when you add the flag, review the list at your planning session and remove a release flag within weeks of full rollout. His suggestions include expiry dates and a cap on how many flags can exist at once. An unowned flag from last year is both clutter and a risk, because nobody remembers which code path is live.

If you ship fast with AI-assisted tools, flags matter more, because change volume rises; AI-written code and release stability covers why.

Are your feature flags under control?

Tick each item that is true today.

  • Every flag has a named owner.
  • Every flag has a removal date.
  • Flags default to off if they cannot be read.
  • You can turn a feature off for one customer or for everyone without a deploy.
  • No flag controls permissions or database schema.
  • Changes to flags are logged with who and when.

Decision point: Five or six ticks: flags are an asset. Three or fewer: you are collecting inventory you will have to untangle later.

Sources

  1. Martin Fowler, Feature Toggles (checked November 2026)
  2. AWS docs, Amazon ECS rolling update deployments (checked November 2026)
  3. AWS, Amazon ECS enables built-in blue/green deployments (17 July 2025)

Keep reading

Keel is an AWS release and recovery operations service for SaaS teams of 3 to 15 developers, provided by Bargainn Services Ltd, a UK company registered at Companies House (16497746). Registered office: 3rd Floor, 86-90 Paul Street, London, EC2A 4NE, United Kingdom.