Commit 09cca25c authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'mk/improve-feature-flag-example' into 'master'

Development docs: Improve feature flag example

See merge request gitlab-org/gitlab-ce!25664
parents cbef8f2d e15c33fd
...@@ -65,15 +65,14 @@ the worst case scenario, which we should optimise for, our total cost is now 20. ...@@ -65,15 +65,14 @@ the worst case scenario, which we should optimise for, our total cost is now 20.
If we had used a feature flag, things would have been very different. We don't If we had used a feature flag, things would have been very different. We don't
need to revert a release, and because feature flags are disabled by default we need to revert a release, and because feature flags are disabled by default we
don't need to revert and pick any Git commits. In fact, all we have to do is don't need to revert and pick any Git commits. In fact, all we have to do is
disable the feature, and _maybe_ perform some cleanup. Let's say that the cost disable the feature, and in the worst case, perform cleanup. Let's say that
of this is 1. In this case, our best case cost is 11: 10 to build the feature, the cost of this is 2. In this case, our best case cost is 11: 10 to build the
and 1 to add the feature flag. The worst case cost is now 12: 10 to build the feature, and 1 to add the feature flag. The worst case cost is now 13: 10 to
feature, 1 to add the feature flag, and 1 to disable it. build the feature, 1 to add the feature flag, and 2 to disable and clean up.
Here we can see that in the best case scenario the work necessary is only a tiny Here we can see that in the best case scenario the work necessary is only a tiny
bit more compared to not using a feature flag. Meanwhile, the process of bit more compared to not using a feature flag. Meanwhile, the process of
reverting our changes has been made significantly cheaper, to the point of being reverting our changes has been made significantly and reliably cheaper.
trivial.
In other words, feature flags do not slow down the development process. Instead, In other words, feature flags do not slow down the development process. Instead,
they speed up the process as managing incidents now becomes _much_ easier. Once they speed up the process as managing incidents now becomes _much_ easier. Once
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment