Breaking down a big feature to epics and stories is always tricky. Then you have sub-stories making the process complicated. If you could deploy the finished task that delivers value to the business it would help. Enter feature flags, using this you can deploy your code to production behind a gate. Code and feature are on production but not fully released to everyone.
This post is going to help you adjust your mental model for getting more benefits with feature flags.
Have you ever faced a situation that you need to deploy an epic but it is not possible as it is 80% completed? It is an epic that has to be “released” all or nothing. That is where the power of the feature flag comes into play. You can deploy (not release to everyone) each new value added to production. The trick here is to put it behind a simple logic like if email ends in @yourcompany.com. You can check a minimal code example.
You have to separate the technical deployment process from the business process of releasing a new feature.
Feature switch, feature toggle are some of the other names of feature flags. It can be effortless like if the logged in user’s email is in our white-list we show this form. It can even be a feature that shows up when you add a specific cookie with a defined value in the browser. It can be highly orchestrated too with the use of a SAAS for feature flags. Launch Darkly is a feature flag as a service company. You can use it if you have the time and resource to invest in it.
Any path you take simple or complex the result is you have control over who can access a new feature. The feature is not released to everyone. The difference is how to activate/deactivate a feature flag. It can be as easy as clicking a checkbox or doing another deployment to open up a feature to everyone.
My suggestion is to start small, do an if condition in code and start experimenting. If it works well try other ways like a white-list or even a special cookie from the browser.
There are many advantages of using feature flags in production. Lets list down a few highlights:
You can deploy even small tasks to production with a proper use of feature flags. Think about adding value to the customer and deploying often. Test on production and when you are confident release it to everyone. Always remember Deployment != Release. Happy Feature flagging!
If you have reached this far, please do not forget to add some “claps” :).
Thanks for reading.
Originally published at geshan.com.np.
Create your free account to unlock your custom reading experience.