Feature toggles

Feature toggles are another way to provide a comprehensive CI implementation. Feature toggles exist in the form of switches. Switches can be turned off/turned on via a configuration change, UI implementation switch, or other configurable objects.

Software programming languages provide the ability to feature toggle code by nature. The most simple example of a feature toggle would be a simple if/else condition, as shown here:

# Simple Feature toggleif x in y: # Do something

Beyond a programmatic implementation, a feature toggle's basic flow of operation would be something like what is shown in the following figure:

Feature ...

Get Implementing DevOps with Ansible 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.