Skip to main content
Cloud / DevOpsDeployment StrategiesDiagramBeginner

Feature Flag

KO: 피처 플래그·EN: Feature Flag·JA: フィーチャーフラグ

A release technique that toggles application features dynamically at runtime without redeploying code, decoupling deployment from feature launch

Table of Contents

Structure Diagram

Decoupling Code Deployment vs Feature Release
TraditionalCoupled Release

Code deploy = instant launch

  • RecoveryRequires rollback/redeploy (minutes)
  • TargetingAll users at once
  • BranchingLong-lived branches & merge conflicts
Feature FlagFlag-Controlled Release

Runtime toggle · Targeted rollout

  • RecoveryInstant kill-switch OFF (<1s)
  • TargetingStaff → 5% beta → A/B cohort
  • BranchingTrunk-based development daily merges
Quick Answer

What is Feature Flag?

A release technique that toggles application features dynamically at runtime without redeploying code, decoupling deployment from feature launch. It is a core concept in Deployment Strategies within Cloud / DevOps.

Core Principles

Feature Flags (Feature Toggles) wrap code paths in runtime conditionals controlled by an external configuration service, enabling teams to turn features on or off and target specific user cohorts without redeploying. Their core value is decoupling technical deployment from business release.

Teams can merge incomplete work behind an inactive flag directly into main (enabling Trunk-Based Development), test safely in production with internal users, and shut down faulty features in under a second via a kill switch.

Practical Takeaways

  • Enforce flag lifecycle & cleanup: Classify flags into short-lived release toggles versus long-lived operational kill switches, and schedule automated reminders to delete stale flags within weeks after full rollout.
  • Design safe fallback defaults: Always cache flag rules locally in the SDK and specify a safe default value so flag service outages never break core user flows.
  • Use operational kill switches for resilience: Shed non-critical features (such as heavy recommendations) instantly during traffic spikes to protect checkout or login capacity.

Notable Examples

  • LaunchDarkly, Unleash & Flagsmith: Enterprise and open-source platforms offering streaming flag updates, percentage rollouts, and experimentation.
  • OpenFeature (CNCF): Vendor-neutral open specification for evaluating feature flags across languages.
  • High-velocity SaaS & Mobile Apps: Coordinates cross-platform feature launches simultaneously even when mobile app store review times vary.