feature flag

A switch in the code, controlled from outside, that turns a feature on or off for chosen users without a new deployment.

In more detail

It separates deployment from release: code ships with the behaviour off and is enabled for a cohort, a percentage or nobody. Turning the flag off is the rollback. Flags add operational state, so give each an owner, an expiry date and a removal task.

Example

Spring profiles are not a substitute: switching a profile restarts the application context.

Related terms

Taught in

References

Certification courses