Using an open source framework for feature flags
As we've seen, there are a large number of open source tools or frameworks that allow us to use feature flags in our applications.
In this section, we will look at an example of implementing feature flags within a .NET (Core) application using a simple framework called RimDev.FeatureFlags
.
RimDev.FeatureFlags
is a framework written in .NET that's free and open source (https://github.com/ritterim/RimDev.FeatureFlags) and is packaged and distributed via a NuGet package. It can be found here: https://www.nuget.org/packages/RimDev.AspNetCore.FeatureFlags.
To store the feature flag data, RimDev.FeatureFlags
uses a database that must be created beforehand. The advantage of RimDev.FeatureFlags
is that once implemented in our application, it provides a web user interface (UI) that allows us to enable or disable feature flags.
As a prerequisite for this example, we need to have an ASP.NET Core MVC application already initialized...