Feature Flags as a Continuous Delivery Release Tool
Tags: devops, featureflags, featuretoggles
Published: 2018-02-15 21:50:46

---
title: "Feature Flags as a Continuous Delivery Release Tool"
published: true
tags: devOps,Feature Flags,Feature Toggles
canonical_url: http://iedaddy.com/2018/02/feature-flags-release-tool/
---

> “Are feature flags better for risk mitigation, fast feedback, hypothesis-driven development or subscription tiers?”

**Yes.**

[![](http://iedaddy.com/wp-content/uploads/2018/02/feature_toggle.png)](http://iedaddy.com/wp-content/uploads/2018/02/feature_toggle.png)

Feature flags can be used to enable many different behaviors within the final product, they can give product owners fine-grained control over the product’s behavior and user accessibility both throughout the development lifecycle as well as within the client facing product.&nbsp; They are valuable technique to power more effective DevOps and drive innovation throughout the development and delivery process.

Common types of feature flags include:

## Kill Switch

[![](http://iedaddy.com/wp-content/uploads/2018/02/reb_button-300x225.jpg)](http://iedaddy.com/wp-content/uploads/2018/02/reb_button.jpg)

A feature flag is a condition in your code, an IF/THEN for two different options.  
At its simplest, a feature flag can be used to flag a new or risky behavior.&nbsp; The great thing about a kill switch is that they can be made available within the product separate from a deployment.

You can turn on the new feature at any time.&nbsp; If the feature doesn’t behave as expected, it’s possible to shut it off quickly.&nbsp; This allows for development on other features to continue without forcing a complete rollback of your production code.

With feature flagging, you’re mitigating risk by making every feature encapsulated and controlled so if a feature has problems in production, they can be turned off rather than having a deployment rolled-back.

## Beta Feedback / Canary Release

[![](http://iedaddy.com/wp-content/uploads/2018/02/canary_coalmine-300x135.jpg)](http://iedaddy.com/wp-content/uploads/2018/02/canary_coalmine.jpg)

For faster feedback, beyond an on/off switch, you can control at a very granular level who sees the new feature.&nbsp; This allows you to expose a new feature to an advanced group of “friendly” customers who are willing to try out some new features you are developing.&nbsp; These beta testers can review the feature and take it for a spin and give you great feedback that might not have been considered when building out the original use-cases for the product.

## Hypothesis-Driven Development & A/B Testing

[![](http://iedaddy.com/wp-content/uploads/2018/02/hypothesis-300x133.png)](http://iedaddy.com/wp-content/uploads/2018/02/hypothesis.png)

Hypothesis-Driven Development Feature flags are also good for long-term access level control.&nbsp; They help prove out certain metrics by being able to measure the end-user behavior depending on whether or not a feature is enabled for a group of users and measuring their behavior.&nbsp; For example, if you have a feature that only advanced users should access, you can use a feature to have a different experience for “Newbie” vs “Power users”.  
You can use also feature flags to control localization, due to various regulations throughout the world, you may find that you need to enable features in one country and disable it in others in order to stay within regulatory compliance for that particular nation.

## Subscription Plans and Permissions Toggles

[![](http://iedaddy.com/wp-content/uploads/2018/02/subscribe-300x300.jpg)](http://iedaddy.com/wp-content/uploads/2018/02/subscribe-300x300.jpg)

You can bundle several flags together to form a subscription, for example you can have a bronze, silver, and gold tier and enable various sets of features that each subscription plan might have available to them based on what subscription is tied to their account.&nbsp; This is a model that many of the “Freemium” apps out there subscribe to, where everyone is granted access to a base set of features, but other features are reserved only for customers who are in the paid groups.

## Managing the technical debt of Feature Flags

Feature Flags have a tendency to multiply rapidly, particularly when first introduced.&nbsp; Toggles need to be viewed as technical debt and they come with a carrying cost, so it’s important to also keep them from proliferating within the application.

[![](http://iedaddy.com/wp-content/uploads/2018/02/technical-debt.jpg)](http://iedaddy.com/wp-content/uploads/2018/02/technical-debt.jpg)

In order to keep the number of feature flags manageable, a team must be proactive in removing feature flags that are no longer needed.&nbsp; Once a particular canary feature has been turned on in production and has proven stable, it should be removed and expired.&nbsp; Other techniques might include adding governance to your development rules by placing a limit on the number of feature flags a system is allowed to have.&nbsp; Once the limit is reached in order to add another feature flag, you’ll need to review the current set and remove some existing flags in order to make room under the cap.

_The post [Feature Flags as a Continuous Delivery Release Tool](http://iedaddy.com/2018/02/feature-flags-release-tool/) appeared first on [Experiences of an Inland Empire Dad](http://iedaddy.com)._