DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Feature Flag Debt: Performance Impact in Enterprise Applications
  • Stop Using the ATM-Didn’t-Kill-Jobs Story to Reassure Developers About AI
  • The 7 Pillars of Meeting Design: Transforming Expensive Conversations into Decision Assets
  • How AI Is Transforming Software Engineering and How Developers Can Take Advantage

Trending

  • Prompt Injection Is Real, So I Built a Python Firewall for LLM Pipelines
  • Persistent Memory for AI Agents Using LangChain's Deep Agents
  • 5 AI Security Incidents That Broke Things in Production (and What They Have in Common)
  • Alternative Structured Concurrency
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Is It a Feature Flag or a Feature Toggle?

Is It a Feature Flag or a Feature Toggle?

Martin Fowler and Jez Humble are both promoters of feature flags and rollouts for Continuous Delivery, but is there an application beyond just software?

By 
Justin Baker user avatar
Justin Baker
·
May. 04, 16 · Opinion
Likes (12)
Comment
Save
Tweet
Share
11.1K Views

Join the DZone community and get the full member experience.

Join For Free

History of the Toggle

Jez Humble and Martin Fowler are best known for promoting the separation of feature rollout from code deployment. Within the context of continuous delivery, they provided the foundation for a framework that would allow developers to release software faster and with less risk.

Fowler is well-known for championing the notion of feature toggles, which are ways to wrap features in conditionals that allow you to toggle features on and off for users.  This would enable developers to take full control of their feature rollouts, dark launch, and roll back poorly performing features.

This led to the rise of open source feature toggle libraries tailored for specific languages, like Java and PHP.  The main purpose of these initial libraries was to allow the quick and easy implementation of basic feature toggling functionality — a boolean value of true or false that would determine the visibility of a code snippet.  Moreover, early feature toggle developers had to address the issues of runtime performance, technical debt management, toggle management, and polyglot stacks.

As feature toggles increased in popularity, developers started to explore advanced functionality like incremental percentage rollouts, granular user targeting, and long term feature management.  With full control of feature releases, developers saw the power of releasing features to beta testers, specific user groups, and gradually ramp up a feature release from 1% to 5% to 100% of users.

Feature toggles, therefore, became less about simply turning a feature on or off.  They became more about full feature lifecycle management — managing the feature from development, to release, to sunset.

With this new emphasis on management came the rise of the feature flag.

The Rise of the Flag

Although feature toggles and flags are used quite interchangeably today, feature flags may be growing into the more appropriate term.  A toggle implies that something has two states: on and off.  Many new frameworks are switching to the nomenclature of flag because they are supporting long term control, percentage rollouts, and multivariate states.

Feature flags do not have to be binary.  A flag can return multiple values like blue, red, green, and purple which your code can interpret to display different variants of a feature.  You could also potentially use flags to release features using date ranges and numbers.  In other words, the feature itself can have more than two states and these states do not necessary need to be on or off.  The off variation for a feature flag could hide the code completely, whereas the blue or red variations will serve different variants.

A feature flag can be considered a way to manage the full lifecycle of a feature, tracking the matriculation of a feature from development, to QA, and to production.  It can also be a way for you to aggregate performance analytics and test the impact of a feature on your system’s architecture.

Feature Flag and Feature toggle

Looking Forward

There is no wrong way to categorize a feature toggle or feature flag.  What is important is that companies are starting to realize the importance of separating feature rollout from code deployment.  This separation enables software to be more adaptive to user needs while also contributing to platform stability.

The future of software development and continuous delivery highlights the significance of feature release management.  Feature release is now no longer an afterthought.  It is something that must be built into the development of a feature from its inception to its rollout.

Feature flags and toggles are now becoming integral to running a business, not just a best practice for the continuous delivery of software.

feature flag Feature toggle Software development

Published at DZone with permission of Justin Baker. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Feature Flag Debt: Performance Impact in Enterprise Applications
  • Stop Using the ATM-Didn’t-Kill-Jobs Story to Reassure Developers About AI
  • The 7 Pillars of Meeting Design: Transforming Expensive Conversations into Decision Assets
  • How AI Is Transforming Software Engineering and How Developers Can Take Advantage

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook