<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AvlCodeMonkey Industries</title>
    <description>The latest articles on DEV Community by AvlCodeMonkey Industries (avlcodemonkey-industries).</description>
    <link>https://dev.to/avlcodemonkey-industries</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F14409%2Fa8686fbe-b747-4568-a529-520bac194280.png</url>
      <title>DEV Community: AvlCodeMonkey Industries</title>
      <link>https://dev.to/avlcodemonkey-industries</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/avlcodemonkey-industries"/>
    <language>en</language>
    <item>
      <title>Azure App Configuration vs FeatureFlags.app: An Honest Comparison</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Mon, 16 Nov 2026 13:35:16 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/azure-app-configuration-vs-featureflagsapp-an-honest-comparison-227j</link>
      <guid>https://dev.to/avlcodemonkey-industries/azure-app-configuration-vs-featureflagsapp-an-honest-comparison-227j</guid>
      <description>&lt;p&gt;Full disclosure: we make FeatureFlags.app, so we're obviously a little biased.&lt;/p&gt;

&lt;p&gt;But that doesn't mean it's the right choice for everyone. In fact, Azure App Configuration is the better option for plenty of .NET teams.&lt;/p&gt;

&lt;p&gt;Both services work with Microsoft's &lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt; library. That means your &lt;code&gt;IFeatureManager&lt;/code&gt;, &lt;code&gt;[FeatureGate]&lt;/code&gt;, and &lt;code&gt;&amp;lt;feature&amp;gt;&lt;/code&gt; code stays the same either way. You're changing where the flags come from, not how your application checks them.&lt;/p&gt;

&lt;p&gt;Let's compare the two without pretending one size fits all.&lt;/p&gt;

&lt;h2&gt;
  
  
  When Azure App Configuration is the better choice
&lt;/h2&gt;

&lt;p&gt;Azure App Configuration is a mature configuration service, and feature flags are just one part of what it does.&lt;/p&gt;

&lt;p&gt;It's probably the better fit if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You already live in Azure.&lt;/strong&gt; Managed identities, Microsoft Entra ID, and role-based access control are all part of the ecosystem. No extra vendor to introduce.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want configuration and flags together.&lt;/strong&gt; App Configuration handles ordinary settings too, and can reference secrets stored in Azure Key Vault. FeatureFlags.app is focused on feature flags.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need an SLA or geo-replication.&lt;/strong&gt; Azure's Standard and Premium tiers offer service-level agreements, and Standard supports geo-replication.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You need private networking.&lt;/strong&gt; Private Link is available starting with the Developer tier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You use more than .NET.&lt;/strong&gt; Azure has providers for Java Spring, Python, JavaScript, and Go. Our client is .NET-only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Procurement is easier with an existing Azure agreement.&lt;/strong&gt; Sometimes the best technical decision is the one you can actually get approved.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If these describe your environment, there's a good chance you should stick with Azure.&lt;/p&gt;

&lt;h2&gt;
  
  
  When FeatureFlags.app might be a better fit
&lt;/h2&gt;

&lt;p&gt;On the other hand, maybe you don't need a general-purpose configuration service. Maybe you just want to manage feature flags.&lt;/p&gt;

&lt;p&gt;FeatureFlags.app is worth considering if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You don't use Azure.&lt;/strong&gt; App Configuration requires an Azure subscription, resource group, and store. With FeatureFlags.app, you need an API key and a NuGet package.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want a focused dashboard.&lt;/strong&gt; Manage environments, configure filters, test flags against users with the Evaluate page, and review the audit log.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You prefer predictable pricing.&lt;/strong&gt; Our pricing is based on the number of flags, not requests or stores. Environments, applications, and users are unlimited.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No sprawling cloud setup. No need to adopt an entire configuration platform just to flip a Boolean.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does it cost?
&lt;/h2&gt;

&lt;p&gt;Let's look at the public list prices as of October 2026. Azure pricing varies by region and usage, so check the current pricing pages before making a decision.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service / tier&lt;/th&gt;
&lt;th&gt;Approximate monthly cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Azure Free&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Azure Developer&lt;/td&gt;
&lt;td&gt;$3.60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Azure Standard&lt;/td&gt;
&lt;td&gt;$36&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Azure Premium&lt;/td&gt;
&lt;td&gt;$288&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FeatureFlags.app Indie&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FeatureFlags.app Team&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FeatureFlags.app Business&lt;/td&gt;
&lt;td&gt;$25&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Azure App Configuration charges per store, per day. The Free tier includes 1,000 requests per day, while Standard includes 200,000 requests per day, with additional requests charged separately.&lt;/p&gt;

&lt;p&gt;FeatureFlags.app pricing is based on flag count:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Indie:&lt;/strong&gt; Free for up to 25 flags.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Team:&lt;/strong&gt; $10/month for up to 100 flags.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Business:&lt;/strong&gt; $25/month for up to 200 flags.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a production application with up to 100 flags, you're looking at roughly $36/month for an Azure Standard store versus $10/month for FeatureFlags.app Team.&lt;/p&gt;

&lt;p&gt;Of course, price isn't the only consideration. Azure includes capabilities that FeatureFlags.app doesn't offer, so make sure you're comparing what you actually need.&lt;/p&gt;

&lt;h2&gt;
  
  
  Both services poll
&lt;/h2&gt;

&lt;p&gt;Here's something worth understanding regardless of which service you choose: neither one magically updates every running application the instant you click Save.&lt;/p&gt;

&lt;p&gt;Both services use polling.&lt;/p&gt;

&lt;p&gt;Azure App Configuration lets you configure the refresh interval in its .NET provider. FeatureFlags.app refreshes every 15 minutes by default.&lt;/p&gt;

&lt;p&gt;Between refreshes, your application uses its locally cached definitions. That means flag evaluation doesn't require a network request every time your code checks a flag.&lt;/p&gt;

&lt;p&gt;If you're using feature flags as kill switches, pay attention to that refresh interval. A 15-minute delay might be perfectly acceptable for a gradual rollout, but less attractive when you're trying to disable a broken feature immediately.&lt;/p&gt;

&lt;p&gt;Neither service eliminates that trade-off. Choose an interval that makes sense for your application.&lt;/p&gt;

&lt;h2&gt;
  
  
  So, which one should you choose?
&lt;/h2&gt;

&lt;p&gt;Here's the short version:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;If you...&lt;/th&gt;
&lt;th&gt;Consider...&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Already use Azure extensively&lt;/td&gt;
&lt;td&gt;Azure App Configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Want settings and secrets alongside flags&lt;/td&gt;
&lt;td&gt;Azure App Configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Need geo-replication or private networking&lt;/td&gt;
&lt;td&gt;Azure App Configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Need feature management across multiple languages&lt;/td&gt;
&lt;td&gt;Azure App Configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Don't use Azure&lt;/td&gt;
&lt;td&gt;FeatureFlags.app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Just want a straightforward feature flag dashboard&lt;/td&gt;
&lt;td&gt;FeatureFlags.app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prefer flat, predictable pricing&lt;/td&gt;
&lt;td&gt;FeatureFlags.app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Only have a few flags that change with deployments&lt;/td&gt;
&lt;td&gt;&lt;code&gt;appsettings.json&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last option is worth mentioning. If you have three feature flags and they're only changed during deployments, you might not need another service at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  One final thought
&lt;/h2&gt;

&lt;p&gt;The nice thing about using Microsoft's Feature Management library is that you're not permanently tying your application to either service.&lt;/p&gt;

&lt;p&gt;Your application checks flags through &lt;code&gt;IFeatureManager&lt;/code&gt;. The provider supplies the definitions. You can change the provider without rewriting all those feature checks.&lt;/p&gt;

&lt;p&gt;So pick the service that fits your infrastructure, budget, and operational needs.&lt;/p&gt;

&lt;p&gt;If that's Azure App Configuration, great. If you'd rather have a focused dashboard without adopting Azure, take a look at &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And if &lt;code&gt;appsettings.json&lt;/code&gt; is still doing the job, there's no shame in leaving it alone.&lt;/p&gt;

&lt;p&gt;Not every Boolean needs a cloud service.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>featureflags</category>
      <category>azure</category>
      <category>featuremanagement</category>
    </item>
    <item>
      <title>.NET 8 and 9 Are Almost Out of Support. Time to Get Moving.</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Sat, 07 Nov 2026 18:23:06 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/net-8-and-9-are-almost-out-of-support-time-to-get-moving-43bk</link>
      <guid>https://dev.to/avlcodemonkey-industries/net-8-and-9-are-almost-out-of-support-time-to-get-moving-43bk</guid>
      <description>&lt;p&gt;Well, this is awkward.&lt;/p&gt;

&lt;p&gt;.NET 8 and .NET 9 are both reaching end of support on &lt;strong&gt;November 10, 2026&lt;/strong&gt;. That's right around the corner. If you're still running either version in production, it's time to start thinking about that upgrade.&lt;/p&gt;

&lt;p&gt;And no, ignoring the calendar doesn't count as an upgrade strategy. I've checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's happening?
&lt;/h2&gt;

&lt;p&gt;Microsoft has lined up the end-of-support dates for both releases:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Version&lt;/th&gt;
&lt;th&gt;Release type&lt;/th&gt;
&lt;th&gt;End of support&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;.NET 8&lt;/td&gt;
&lt;td&gt;LTS&lt;/td&gt;
&lt;td&gt;November 10, 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;.NET 9&lt;/td&gt;
&lt;td&gt;STS&lt;/td&gt;
&lt;td&gt;November 10, 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;.NET 10&lt;/td&gt;
&lt;td&gt;LTS&lt;/td&gt;
&lt;td&gt;November 2028&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;.NET 8 is an LTS release, normally supported for three years. .NET 9 is an STS release, and its support period was extended to 24 months. The result? Both versions get shown the door on the same day.&lt;/p&gt;

&lt;p&gt;After November 10:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No more regular security updates.&lt;/li&gt;
&lt;li&gt;No more servicing fixes.&lt;/li&gt;
&lt;li&gt;No more Microsoft technical support for those releases.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your applications won't suddenly stop working at midnight. They'll keep running. But they'll be running on an unsupported platform, and any newly discovered vulnerabilities won't get patched through the normal support lifecycle.&lt;/p&gt;

&lt;p&gt;That's not a great place to be.&lt;/p&gt;

&lt;p&gt;You can read the details in &lt;a href="https://devblogs.microsoft.com/dotnet/dotnet-8-9-end-of-support/" rel="noopener noreferrer"&gt;Microsoft's announcement&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The obvious answer: .NET 10
&lt;/h2&gt;

&lt;p&gt;.NET 10 is the current LTS release, supported through November 2028.&lt;/p&gt;

&lt;p&gt;For most applications, the first step is straightforward: update the target framework in your project file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;PropertyGroup&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;TargetFramework&amp;gt;&lt;/span&gt;net10.0&lt;span class="nt"&gt;&amp;lt;/TargetFramework&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Of course, changing one line doesn't magically migrate your entire application. You'll still need to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update your SDK and development environments.&lt;/li&gt;
&lt;li&gt;Check NuGet package compatibility.&lt;/li&gt;
&lt;li&gt;Review breaking changes.&lt;/li&gt;
&lt;li&gt;Test your application.&lt;/li&gt;
&lt;li&gt;Update your hosting environment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And if you're maintaining several applications, you'll want to make sure none of them get lost in the upgrade shuffle.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about your feature flags?
&lt;/h2&gt;

&lt;p&gt;Here's the part relevant to this little corner of the .NET ecosystem.&lt;/p&gt;

&lt;p&gt;If you're using Microsoft's &lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt; libraries, don't assume your feature flag setup needs to be redesigned just because you're upgrading the runtime.&lt;/p&gt;

&lt;p&gt;Feature management is a separate concern from the .NET runtime version. Your flag definitions, filters, and application integration may need package updates or compatibility checks, but the basic concepts remain the same.&lt;/p&gt;

&lt;p&gt;This is actually a good opportunity to review how you're managing those flags.&lt;/p&gt;

&lt;p&gt;Are they still buried in &lt;code&gt;appsettings.json&lt;/code&gt;? Does changing one require a deployment? Are you maintaining separate configuration files for every environment?&lt;/p&gt;

&lt;p&gt;An upgrade is a reasonable time to clean up some of that technical debt. Just don't turn a runtime upgrade into an excuse to rewrite everything. That's how a two-week project becomes a fiscal-year initiative.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't let feature flags become upgrade blockers
&lt;/h2&gt;

&lt;p&gt;Feature flags can make application upgrades safer.&lt;/p&gt;

&lt;p&gt;For example, you can use them to control the rollout of code changes while you're migrating to .NET 10. Keep a new implementation disabled initially, deploy it, and enable it when you're ready to test.&lt;/p&gt;

&lt;p&gt;You can also use a kill switch to disable a problematic feature without immediately rolling back an entire deployment.&lt;/p&gt;

&lt;p&gt;Just remember: a feature flag doesn't make an unsupported runtime safe. It helps manage application behavior; it doesn't replace security patches.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick checklist
&lt;/h2&gt;

&lt;p&gt;If you're still running .NET 8 or .NET 9, here's the short version:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Identify all applications targeting .NET 8 or .NET 9.&lt;/li&gt;
&lt;li&gt;[ ] Check your SDKs, NuGet dependencies, and hosting environments.&lt;/li&gt;
&lt;li&gt;[ ] Plan the move to .NET 10.&lt;/li&gt;
&lt;li&gt;[ ] Test the upgrade before deploying to production.&lt;/li&gt;
&lt;li&gt;[ ] Review your feature flags and configuration strategy.&lt;/li&gt;
&lt;li&gt;[ ] Make sure your deployment and rollback plans are ready.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  One last thing
&lt;/h2&gt;

&lt;p&gt;.NET 8 and .NET 9 don't stop working on November 10. But the support safety net goes away, and that's a pretty good reason to get moving.&lt;/p&gt;

&lt;p&gt;Use the upgrade as an opportunity to tidy up your feature management while you're at it. If you're looking for a straightforward way to manage Microsoft .NET feature flags without relying on Azure App Configuration or maintaining your own dashboard, &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt; is one option.&lt;/p&gt;

&lt;p&gt;Now go check those target frameworks. Your future self would appreciate it. Probably.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>dotnet8</category>
      <category>dotnet9</category>
      <category>featureflags</category>
    </item>
    <item>
      <title>Moving Feature Flags Out of appsettings.json Without Breaking Everything</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Thu, 05 Nov 2026 13:50:09 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/moving-feature-flags-out-of-appsettingsjson-without-breaking-everything-5bao</link>
      <guid>https://dev.to/avlcodemonkey-industries/moving-feature-flags-out-of-appsettingsjson-without-breaking-everything-5bao</guid>
      <description>&lt;p&gt;Feature flags in &lt;code&gt;appsettings.json&lt;/code&gt; are a perfectly reasonable place to start. You add a flag, check it with &lt;code&gt;IFeatureManager&lt;/code&gt;, and get on with building software. Nice and simple.&lt;/p&gt;

&lt;p&gt;Then someone asks you to turn a feature off in production. Suddenly, changing one little Boolean means editing a configuration file, running a deployment pipeline, and waiting for everything to finish. And naturally, this happens at 4:55 on a Friday.&lt;/p&gt;

&lt;p&gt;Maybe it's time to move those flags somewhere a little more convenient. The good news? If you're already using Microsoft's &lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt; library, you don't need to rewrite all the code that checks your flags.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changes (and what doesn't)
&lt;/h2&gt;

&lt;p&gt;When moving flags out of &lt;code&gt;appsettings.json&lt;/code&gt;, the goal is to change the source of your feature definitions, not how your application uses them. These familiar bits can stay:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;IFeatureManager&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;IFeatureManagerSnapshot&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;[FeatureGate]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;&amp;lt;feature&amp;gt;&lt;/code&gt; tag helper&lt;/li&gt;
&lt;li&gt;Microsoft's built-in feature filters&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What changes is where the definitions come from. You'll add a client package, register a different provider, and configure its connection. Let's walk through it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Take inventory
&lt;/h2&gt;

&lt;p&gt;Before moving anything, take a look at your &lt;code&gt;FeatureManagement&lt;/code&gt; section.&lt;/p&gt;

&lt;p&gt;Make a list of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every feature flag and its name.&lt;/li&gt;
&lt;li&gt;Whether it's enabled or disabled.&lt;/li&gt;
&lt;li&gt;Any filters attached to it.&lt;/li&gt;
&lt;li&gt;Any custom filters your application implements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pay particular attention to targeting rules, percentage rollouts, and time windows. You'll want to recreate those accurately. Custom filters can come along too, provided your application still implements the corresponding filter classes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Create your flags in the new location
&lt;/h2&gt;

&lt;p&gt;Create the appropriate environments first — development, staging, production, or whatever your setup requires. Then recreate your flags with the same names and filters. Keep those names identical to what your code expects. A typo here is a fun way to spend an afternoon wondering why a feature is disabled. You can also import flags from the &lt;code&gt;feature_management&lt;/code&gt; section of your existing &lt;code&gt;appsettings.json&lt;/code&gt;, rather than recreating everything manually.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Do this before deploying the application changes. You don't want to switch providers before the flags exist in their new home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Create an API key
&lt;/h2&gt;

&lt;p&gt;Your application needs a way to retrieve its flag definitions. Create an API key for each environment. Each key reads the flags belonging to that environment, keeping development flags out of production. Don't put API keys in source control. For local development, use user secrets:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dotnet user-secrets &lt;span class="nb"&gt;set&lt;/span&gt; &lt;span class="s2"&gt;"FeatureFlags:ApiKey"&lt;/span&gt; &lt;span class="s2"&gt;"your-api-key-here"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For production, use environment variables or your hosting platform's secrets management.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Swap the registration
&lt;/h2&gt;

&lt;p&gt;Install the client package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dotnet add package Acmi.FeatureFlags.Client
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then replace your existing registration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Before&lt;/span&gt;
&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Services&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFeatureManagement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// After&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;Acmi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;FeatureFlags&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFeatureFlags&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice the difference? You're replacing &lt;code&gt;AddFeatureManagement()&lt;/code&gt; with &lt;code&gt;AddFeatureFlags()&lt;/code&gt;. Don't call both. &lt;code&gt;AddFeatureFlags()&lt;/code&gt; already registers Microsoft's feature management services. Calling both registrations causes the application to fail at startup with a &lt;code&gt;FeatureManagementException&lt;/code&gt;. Add the connection settings to &lt;code&gt;appsettings.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"FeatureFlags"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"ApiBaseEndpoint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://featureflags.app/api/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"ApiKey"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"[from secrets]"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that's pretty much the code change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One important gotcha:&lt;/strong&gt; Once the new provider is registered, the old local &lt;code&gt;FeatureManagement&lt;/code&gt; section is no longer used. Any flag that exists only in &lt;code&gt;appsettings.json&lt;/code&gt; will evaluate as off. Check your flags using the dashboard's Evaluate page before deploying. Once everything is verified, remove the old section.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Understand the failure modes
&lt;/h2&gt;

&lt;p&gt;Before declaring victory, understand what happens when the flag service isn't available.&lt;/p&gt;

&lt;p&gt;The client:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fetches definitions when your application starts.&lt;/li&gt;
&lt;li&gt;Refreshes them every 15 minutes by default.&lt;/li&gt;
&lt;li&gt;Keeps the last successfully fetched definitions if a later refresh fails.&lt;/li&gt;
&lt;li&gt;Retries failed refreshes in the background.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the service is unavailable when the application first starts, there's no previous copy to fall back on. Flags evaluate as off until the first successful fetch. If you're using flags as kill switches, consider reducing the refresh interval with &lt;code&gt;CacheExpirationInMinutes&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;No system is magic. Know what happens when the network gets grumpy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What if you want to move back?
&lt;/h2&gt;

&lt;p&gt;Good news: you're not locked in.&lt;/p&gt;

&lt;p&gt;You can export an environment's flags as standard Microsoft.FeatureManagement JSON and put them back into &lt;code&gt;appsettings.json&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Then switch the registration back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Services&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFeatureManagement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;WithTargeting&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;.WithTargeting()&lt;/code&gt; call is important if you're using percentage rollouts, since those export as Microsoft's Targeting filter. Custom filters are exported as-is, so your application still needs their implementations. Your feature-checking code doesn't need to know anything changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Moving feature flags out of &lt;code&gt;appsettings.json&lt;/code&gt; isn't about changing how you write application code. It's about changing how you manage releases. You can keep using Microsoft's familiar feature management APIs while gaining a more convenient way to manage flags across environments.&lt;/p&gt;

&lt;p&gt;And if you'd rather not build and maintain your own flag dashboard, &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt; provides one that works with Microsoft.FeatureManagement — without requiring Azure App Configuration.&lt;/p&gt;

&lt;p&gt;The best migration is the one where nobody notices anything changed. Except the Friday-afternoon you.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>featureflags</category>
      <category>configuration</category>
      <category>devops</category>
    </item>
    <item>
      <title>Time Window Filters in .NET: Because Nobody Wants to Wake Up at Midnight</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Sat, 10 Oct 2026 16:20:54 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/time-window-filters-in-net-because-nobody-wants-to-wake-up-at-midnight-5f9m</link>
      <guid>https://dev.to/avlcodemonkey-industries/time-window-filters-in-net-because-nobody-wants-to-wake-up-at-midnight-5f9m</guid>
      <description>&lt;p&gt;Want to launch a feature at 9 AM on Monday? Disable a promotion at midnight on Friday? Enable a feature every evening during off-peak hours?&lt;/p&gt;

&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; set a reminder, wake up, log in, flip a flag, and wonder why you didn't automate this in the first place. Or you could use the &lt;strong&gt;TimeWindowFilter&lt;/strong&gt; in Microsoft's .NET feature management library.&lt;/p&gt;

&lt;p&gt;Let's do the lazy thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is the Time Window Filter?
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt; library includes a built-in &lt;code&gt;TimeWindowFilter&lt;/code&gt; that enables a feature based on a configured time window. Instead of manually toggling a flag, you define when it should become active and, optionally, when it should stop being active.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Launch a feature at a specific date and time.&lt;/li&gt;
&lt;li&gt;Automatically disable a promotion when it expires.&lt;/li&gt;
&lt;li&gt;Schedule a feature for a planned announcement.&lt;/li&gt;
&lt;li&gt;Enable functionality during recurring maintenance windows or off-peak periods.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No cron job. No scheduled deployment. No alarm clock. Just a flag with a schedule.&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic Configuration
&lt;/h2&gt;

&lt;p&gt;First, make sure you've installed the ASP.NET Core package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dotnet add package Microsoft.FeatureManagement.AspNetCore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Register feature management in &lt;code&gt;Program.cs&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Services&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;AddFeatureManagement&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now define a flag in &lt;code&gt;appsettings.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"EnabledFor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Microsoft.TimeWindow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"Parameters"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"Start"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Fri, 16 Oct 2026 13:00:00 GMT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"End"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Fri, 16 Oct 2026 17:00:00 GMT"&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example enables &lt;code&gt;NewDashboard&lt;/code&gt; during the specified UTC time window. The feature is off before the window opens and after it closes. Your application code can check the flag as usual:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_featureManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Show the new dashboard&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The feature management library handles the time-based evaluation. You don't need to write your own date comparisons throughout the application. One less thing to get wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start and End Times Are Optional
&lt;/h2&gt;

&lt;p&gt;You don't always need both boundaries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Only &lt;code&gt;Start&lt;/code&gt;:&lt;/strong&gt; The feature becomes eligible to be enabled at the specified time and remains eligible afterward.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Only &lt;code&gt;End&lt;/code&gt;:&lt;/strong&gt; The feature is enabled until the specified time, assuming the flag is otherwise enabled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Both:&lt;/strong&gt; The feature is enabled only within the defined time window.&lt;/p&gt;

&lt;p&gt;This is handy for everything from scheduled launches to temporary promotions. Just remember that the flag's overall enabled state and its filters still matter. A time window isn't a magic override for every other condition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recurring Time Windows
&lt;/h2&gt;

&lt;p&gt;Now for the fun part. What if you want a feature enabled every weekday evening, or every day during a particular maintenance window? The filter supports recurrence rules using &lt;code&gt;Pattern&lt;/code&gt; and &lt;code&gt;Range&lt;/code&gt;. For example, this configuration repeats a two-hour window every day:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"MaintenanceMode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"EnabledFor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Microsoft.TimeWindow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"Parameters"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"Start"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Fri, 16 Oct 2026 20:00:00 GMT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"End"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Fri, 16 Oct 2026 22:00:00 GMT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"Recurrence"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"Pattern"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="nl"&gt;"Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Daily"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="nl"&gt;"Interval"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"Range"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="nl"&gt;"Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"NoEnd"&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The window repeats daily, indefinitely. You can also configure weekly patterns, such as every Monday or every other Friday, and specify when the recurrence should stop. A couple of important details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Recurrence requires both &lt;code&gt;Start&lt;/code&gt; and &lt;code&gt;End&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The initial start time must fit the recurrence pattern.&lt;/li&gt;
&lt;li&gt;The window duration can't exceed the interval between occurrences.&lt;/li&gt;
&lt;li&gt;The example uses UTC, so account for time zones and daylight saving time when planning releases.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the full configuration details, see &lt;a href="https://learn.microsoft.com/en-us/azure/azure-app-configuration/use-feature-flags-dotnet-core" rel="noopener noreferrer"&gt;Microsoft's .NET feature management documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When Should You Use It?
&lt;/h2&gt;

&lt;p&gt;Time window filters are useful whenever the schedule itself determines whether a feature should be active.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scheduled launches:&lt;/strong&gt; Prepare a feature in advance and let it become available at launch time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Promotions:&lt;/strong&gt; Automatically stop offering a discount when the campaign ends.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Maintenance windows:&lt;/strong&gt; Enable maintenance functionality during planned periods.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Recurring operations:&lt;/strong&gt; Activate features during predictable daily or weekly windows.&lt;/p&gt;

&lt;p&gt;They're not a replacement for every scheduling system. If you need to execute a background job at a precise time, you still need an appropriate job scheduler. A feature flag controls application behavior. It doesn't magically execute code when the clock strikes twelve.&lt;/p&gt;

&lt;h2&gt;
  
  
  Managing the Configuration
&lt;/h2&gt;

&lt;p&gt;There's one catch with the &lt;code&gt;appsettings.json&lt;/code&gt; approach. Someone has to maintain the configuration. If a launch time changes, you need to update the relevant settings. Depending on your configuration setup, that might involve a deployment or a configuration reload.&lt;/p&gt;

&lt;p&gt;That's manageable for a small application. It becomes less fun when non-technical people need to coordinate launches, or when you have multiple environments and several scheduled features. This is where a feature flag management UI helps. You can manage the flags while keeping Microsoft's feature management library responsible for evaluating them in your application.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Time window filters let you automate feature availability based on a schedule. Use them to launch features, expire promotions, and manage recurring availability without manually flipping switches.&lt;/p&gt;

&lt;p&gt;Just remember:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Configure the correct start and end times.&lt;/li&gt;
&lt;li&gt;Be explicit about time zones.&lt;/li&gt;
&lt;li&gt;Test your filter configuration.&lt;/li&gt;
&lt;li&gt;Don't confuse enabling a feature with scheduling a background job.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And if you want a simpler way to manage your .NET feature flags, take a look at &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automate the toggle. Keep your sleep schedule. Ship the feature.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>featureflags</category>
      <category>csharp</category>
      <category>devops</category>
    </item>
    <item>
      <title>Targeting Feature Flags Without Losing the Plot</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Sat, 10 Oct 2026 16:17:05 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/targeting-feature-flags-without-losing-the-plot-3dn6</link>
      <guid>https://dev.to/avlcodemonkey-industries/targeting-feature-flags-without-losing-the-plot-3dn6</guid>
      <description>&lt;p&gt;A boolean feature flag is easy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"NewFeature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then someone inevitably asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Can we turn it on just for QA?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Welcome to &lt;strong&gt;targeting filters&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Microsoft.FeatureManagement includes a built-in &lt;code&gt;TargetingFilter&lt;/code&gt; that can target individual users, groups, percentage rollouts, and exclusions. Powerful? Absolutely. Slightly more complicated than flipping a boolean? Also absolutely.&lt;/p&gt;

&lt;h2&gt;
  
  
  The JSON Way
&lt;/h2&gt;

&lt;p&gt;With plain configuration, you can define a targeting filter directly in &lt;code&gt;appsettings.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"NewFeature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"EnabledFor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Microsoft.Targeting"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"Parameters"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"Audience"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"Users"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="s2"&gt;"qa@mydomain.com"&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"Groups"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"DefaultRolloutPercentage"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="nl"&gt;"Exclusion"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="nl"&gt;"Users"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
                  &lt;/span&gt;&lt;span class="s2"&gt;"another.qa@mydomain.com"&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="nl"&gt;"Groups"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt;&lt;span class="w"&gt;
              &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is perfectly valid. It's also the point where &lt;code&gt;appsettings.json&lt;/code&gt; starts getting messy. The targeting filter supports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Specific users&lt;/strong&gt; — Enable a feature for selected individuals.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Groups&lt;/strong&gt; — Target teams or predefined audiences.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Percentage rollouts&lt;/strong&gt; — Gradually expose a feature to a portion of your audience.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exclusions&lt;/strong&gt; — Explicitly prevent certain users or groups from receiving the feature.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Exclusions take priority over the other targeting rules. For developers, this is all fine. For someone from Product who just wants to enable a beta feature for QA? Maybe don't hand them the JSON.&lt;/p&gt;

&lt;h2&gt;
  
  
  Azure App Configuration
&lt;/h2&gt;

&lt;p&gt;This is where Azure App Configuration steps in. Instead of editing JSON, you get a UI for configuring flags and their filters. The Azure portal's Feature Manager lets you configure targeting with included and excluded users, groups, and percentage rollouts.&lt;/p&gt;

&lt;p&gt;So instead of:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Please don't break the JSON.&lt;/li&gt;
&lt;li&gt;Commit the JSON.&lt;/li&gt;
&lt;li&gt;Deploy the JSON.&lt;/li&gt;
&lt;li&gt;Explain why you put a comma there.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You get an actual feature management interface. Of course, now you're using Azure App Configuration. That's not necessarily a bad thing. If you're already heavily invested in Azure, it can be a sensible choice. But what if you just want a UI for managing feature flags without adopting another piece of the Azure ecosystem?&lt;/p&gt;

&lt;h2&gt;
  
  
  FeatureFlags.app
&lt;/h2&gt;

&lt;p&gt;That's the problem FeatureFlags.app is trying to solve. The targeting filter provides a straightforward UI for the common case: turn a feature on for these users and keep it off for those users. In the UI, you select the Targeting Filter, add target users, and optionally add excluded users.&lt;/p&gt;

&lt;p&gt;Your application still uses Microsoft's feature management libraries underneath, so your application code doesn't need to learn a new feature flag religion. Piece of cake. You can also define more complex filters through JSON when you need additional flexibility.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which Approach Should You Choose?
&lt;/h2&gt;

&lt;p&gt;It depends on what you're trying to accomplish.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;appsettings.json&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Small apps, developers, simple configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Azure App Configuration&lt;/td&gt;
&lt;td&gt;Azure-heavy environments and centralized configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FeatureFlags.app&lt;/td&gt;
&lt;td&gt;.NET teams wanting a focused feature flag management UI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The targeting logic isn't the difficult part. Microsoft has already done that work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The real question is where you want to manage the configuration.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you're happy editing JSON and deploying configuration changes, stick with JSON. If you want centralized configuration as part of your Azure environment, Azure App Configuration is a reasonable choice.&lt;/p&gt;

&lt;p&gt;If you want a focused UI for managing .NET feature flags without turning the whole thing into an Azure architecture project, take a look at &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Your feature flag system should be just complicated enough to solve your problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not complicated enough to become one.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>featureflags</category>
      <category>csharp</category>
      <category>azure</category>
    </item>
    <item>
      <title>Using Microsoft FeatureManagement Without Azure App Configuration</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Fri, 09 Oct 2026 19:45:24 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/using-microsoft-featuremanagement-without-azure-app-configuration-dn5</link>
      <guid>https://dev.to/avlcodemonkey-industries/using-microsoft-featuremanagement-without-azure-app-configuration-dn5</guid>
      <description>&lt;p&gt;Search for &lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt; and a lot of tutorials eventually lead to Azure App Configuration.&lt;/p&gt;

&lt;p&gt;Nothing wrong with Azure. It's a perfectly good service. But here's the thing: &lt;strong&gt;Microsoft.FeatureManagement doesn't actually require it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The library doesn't care where your feature flags come from. It reads definitions through an abstraction, and you get to decide what's behind it.&lt;/p&gt;

&lt;p&gt;Let's look at a few options.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: appsettings.json (or any configuration source)
&lt;/h2&gt;

&lt;p&gt;The simplest approach is to use &lt;code&gt;IConfiguration&lt;/code&gt;, which is what &lt;code&gt;AddFeatureManagement()&lt;/code&gt; uses by default.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Services&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;AddFeatureManagement&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And in &lt;code&gt;appsettings.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use environment variables, user secrets, or any other configuration provider supported by .NET.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The good:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No additional dependencies.&lt;/li&gt;
&lt;li&gt;Configuration lives alongside the application.&lt;/li&gt;
&lt;li&gt;Easy to understand and maintain.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The not-so-good:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Changing a flag may mean changing configuration on every server.&lt;/li&gt;
&lt;li&gt;Depending on your deployment setup, that can mean a deployment.&lt;/li&gt;
&lt;li&gt;No management dashboard.&lt;/li&gt;
&lt;li&gt;No audit trail beyond whatever you get from source control.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a handful of flags that only change when you deploy, this is probably all you need. Don't build a spaceship to cross the street.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: Roll your own IFeatureDefinitionProvider
&lt;/h2&gt;

&lt;p&gt;Want more control? You can provide your own implementation of &lt;code&gt;IFeatureDefinitionProvider&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That means feature definitions can come from a database, an API, or whatever storage mechanism makes sense for your application.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;DatabaseFeatureDefinitionProvider&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;IFlagStore&lt;/span&gt; &lt;span class="n"&gt;store&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;IFeatureDefinitionProvider&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="n"&gt;IAsyncEnumerable&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;FeatureDefinition&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nf"&gt;GetAllFeatureDefinitionsAsync&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;store&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetAllAsync&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
            &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;ToDefinition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;flag&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;FeatureDefinition&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;GetFeatureDefinitionAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;featureName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;store&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;featureName&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="k"&gt;null&lt;/span&gt;
            &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;FeatureDefinition&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;featureName&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;ToDefinition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;flag&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="n"&gt;FeatureDefinition&lt;/span&gt; &lt;span class="nf"&gt;ToDefinition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Flag&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;EnabledFor&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;flag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Enabled&lt;/span&gt;
            &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;FeatureFilterConfiguration&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"AlwaysOn"&lt;/span&gt; &lt;span class="p"&gt;}]&lt;/span&gt;
            &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Register it after feature management:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Services&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;AddFeatureManagement&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Services&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AddSingleton&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;
    &lt;span class="n"&gt;IFeatureDefinitionProvider&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;DatabaseFeatureDefinitionProvider&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you're in charge.&lt;/p&gt;

&lt;p&gt;Which is both the good news and the bad news.&lt;/p&gt;

&lt;p&gt;You own the storage, caching, invalidation, management UI, audit trail, and access control. Congratulations, you've just given yourself a few more things to maintain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 3: Use a hosted service
&lt;/h2&gt;

&lt;p&gt;This is essentially option 2, except someone else has already built the provider, dashboard, and caching.&lt;/p&gt;

&lt;p&gt;A hosted feature flag service can refresh definitions in the background and keep an in-memory copy. That means feature checks don't need to wait for a network call.&lt;/p&gt;

&lt;p&gt;For example, with the FeatureFlags.app client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;Acmi.FeatureFlags.Client&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;AddFeatureFlags&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your existing &lt;code&gt;IFeatureManager&lt;/code&gt;, &lt;code&gt;[FeatureGate]&lt;/code&gt;, and &lt;code&gt;&amp;lt;feature&amp;gt;&lt;/code&gt; usage stays the same.&lt;/p&gt;

&lt;p&gt;The trade-offs are worth understanding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You're adding another service and dependency.&lt;/li&gt;
&lt;li&gt;Pricing may increase as your flag count grows.&lt;/li&gt;
&lt;li&gt;Changes arrive on a refresh interval (15 minutes by default), rather than instantly.&lt;/li&gt;
&lt;li&gt;If the service is unreachable when the app starts, flags remain off until the first successful fetch.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's a reasonable middle ground when you want a dashboard and runtime changes without building and maintaining the whole thing yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where does Azure App Configuration fit?
&lt;/h2&gt;

&lt;p&gt;Azure App Configuration is another hosted option, and a particularly good fit if you're already running in Azure.&lt;/p&gt;

&lt;p&gt;You get configuration settings, Key Vault references, and feature flags in one place. If you're using managed identities and the rest of the Azure ecosystem, it can be a natural choice.&lt;/p&gt;

&lt;p&gt;The trade-off is that you're taking on an Azure service and managing your flags through its portal.&lt;/p&gt;

&lt;h2&gt;
  
  
  So, which one should you use?
&lt;/h2&gt;

&lt;p&gt;It depends on what problem you're actually trying to solve.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A few flags that change with deployments?&lt;/strong&gt; Use &lt;code&gt;appsettings.json&lt;/code&gt;. Keep it simple.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A custom workflow or specialized storage requirements?&lt;/strong&gt; Implement &lt;code&gt;IFeatureDefinitionProvider&lt;/code&gt;. Just be prepared to own the plumbing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A dashboard and runtime changes without building your own infrastructure?&lt;/strong&gt; Consider a hosted service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Already invested in Azure?&lt;/strong&gt; Azure App Configuration may be the obvious choice.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The important bit is that your feature-checking code doesn't need to change between these approaches. You can start with configuration files and move to a different provider as your needs evolve.&lt;/p&gt;

&lt;p&gt;No need to marry your feature flags to your configuration backend.&lt;/p&gt;

&lt;p&gt;And if you'd rather spend your time building features instead of building a feature flag management system, &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt; is another option worth a look. It's a hosted dashboard for Microsoft.FeatureManagement, without requiring Azure App Configuration.&lt;/p&gt;

&lt;p&gt;Choose the tool that fits the problem. Your future maintenance schedule will thank you.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>featureflags</category>
      <category>csharp</category>
      <category>devops</category>
    </item>
    <item>
      <title>Build vs Buy: You Don't Need Another Side Project</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Wed, 02 Sep 2026 16:32:47 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/build-vs-buy-you-dont-need-another-side-project-2cgm</link>
      <guid>https://dev.to/avlcodemonkey-industries/build-vs-buy-you-dont-need-another-side-project-2cgm</guid>
      <description>&lt;p&gt;When you first need feature flags in a .NET application, the answer is wonderfully boring. Install &lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt;, put some flags in &lt;code&gt;appsettings.json&lt;/code&gt;, and you're off to the races. Microsoft handles the feature evaluation plumbing, filters, targeting, and ASP.NET Core integration. And honestly?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That works great.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For a small application with a handful of flags, you probably don't need anything more. Then things grow. Suddenly your &lt;code&gt;appSettings.json&lt;/code&gt; has become a feature management database with worse UX.&lt;/p&gt;

&lt;h2&gt;
  
  
  When Configuration Becomes a Product
&lt;/h2&gt;

&lt;p&gt;The problem isn't evaluating a flag. That's easy. The problem is everything around it. What if a product manager wants to enable a feature without asking a developer? What if you want to change a flag without rebuilding and redeploying the application? What if you have multiple environments and enough flags that nobody remembers which configuration file is currently lying to them?&lt;/p&gt;

&lt;p&gt;At that point, you're not really managing configuration anymore. &lt;strong&gt;You're building a feature flag platform.&lt;/strong&gt; And that's where the build-vs-buy question gets interesting.&lt;/p&gt;

&lt;h2&gt;
  
  
  But AI Makes Building It Easy... Right?
&lt;/h2&gt;

&lt;p&gt;Well, yes. AI has made generating code dramatically cheaper. You can ask an AI to build:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A feature flag API&lt;/li&gt;
&lt;li&gt;An admin UI&lt;/li&gt;
&lt;li&gt;A database schema&lt;/li&gt;
&lt;li&gt;An SDK&lt;/li&gt;
&lt;li&gt;Authentication&lt;/li&gt;
&lt;li&gt;Deployment scripts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;...before your coffee gets cold. Congratulations. &lt;strong&gt;You have something that works.&lt;/strong&gt; You have not eliminated:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maintenance and security updates&lt;/li&gt;
&lt;li&gt;Hosting and infrastructure costs&lt;/li&gt;
&lt;li&gt;Backups&lt;/li&gt;
&lt;li&gt;Monitoring&lt;/li&gt;
&lt;li&gt;Documentation&lt;/li&gt;
&lt;li&gt;Support and on-call&lt;/li&gt;
&lt;li&gt;Future-you wondering why past-you volunteered for this&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AI reduces the cost of &lt;strong&gt;writing&lt;/strong&gt; software. It doesn't necessarily reduce the cost of &lt;strong&gt;owning&lt;/strong&gt; software. That's an important distinction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build vs Buy Isn't About Code
&lt;/h2&gt;

&lt;p&gt;The real question isn't:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Can I build this?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Of course you can. The question is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"Do I want to keep building and maintaining this?"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's a very different question. If you're building a SaaS product, your engineering time is probably better spent on the things that give your product a competitive advantage. Not on building an admin interface for toggling booleans. Not on figuring out how to back up your feature flag database. Not on discovering that your homemade flag service has been down for three hours because nobody configured monitoring. And definitely not on becoming the proud maintainer of &lt;strong&gt;Yet Another Internal Platform™&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  So... Build or Buy?
&lt;/h2&gt;

&lt;p&gt;There isn't a universal answer. For a simple application with three flags?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Seriously. Microsoft already provides the feature management library. Put the flags in configuration and move on with your life. For a growing application where non-technical people need to safely manage features without touching JSON files or deployment pipelines?&lt;/p&gt;

&lt;p&gt;That's where a focused third-party solution starts looking pretty attractive. You get a proper management interface while your developers stay focused on building the actual product. That's the trade-off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build your product. Buy the plumbing.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you're looking for a simple way to manage .NET feature flags without turning feature management into another project, check out &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt;. Your developers will thank you. Probably.&lt;/p&gt;

</description>
      <category>featureflags</category>
      <category>dotnet</category>
      <category>softwaredevelopment</category>
      <category>ai</category>
    </item>
    <item>
      <title>Feature Flags, Caching, and the Fine Art of Not Hammering Your API</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Wed, 02 Sep 2026 15:17:07 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/feature-flags-caching-and-the-fine-art-of-not-hammering-your-api-25e0</link>
      <guid>https://dev.to/avlcodemonkey-industries/feature-flags-caching-and-the-fine-art-of-not-hammering-your-api-25e0</guid>
      <description>&lt;p&gt;Feature flags need to be fast. You don't want an HTTP request every time your application asks:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Is this thing turned on?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That would be a spectacularly bad architecture. Let's look at what actually happens under the hood.&lt;/p&gt;

&lt;h2&gt;
  
  
  Microsoft.FeatureManagement: Let IConfiguration Do Its Thing
&lt;/h2&gt;

&lt;p&gt;If you're using &lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt;, your feature definitions typically come from &lt;code&gt;IConfiguration&lt;/code&gt;. A common setup looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"NewFeature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important thing to understand is that &lt;code&gt;IConfiguration&lt;/code&gt; isn't reading &lt;code&gt;appsettings.json&lt;/code&gt; from disk every time you ask for a value. Configuration providers load their data into the configuration system. .NET can watch for changes and reload configuration when the underlying source changes. So the flow looks roughly like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;appsettings.json
       ↓
Configuration Provider
       ↓
IConfiguration
       ↓
Microsoft.FeatureManagement
       ↓
Your application
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No disk read per feature check. No network request. Just an in-memory configuration lookup. Maybe you add your own caching layer. Maybe you don't. Either way, nice and boring. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And boring is good.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  But What About Remote Feature Flags?
&lt;/h2&gt;

&lt;p&gt;That's where things get more interesting. If your feature flag definitions live on another service, you obviously don't want this happening every time your application checks a flag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Application
     ↓
   HTTP
     ↓
Feature Flag Service
     ↓
   HTTP response
     ↓
Application
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once or twice? Fine.&lt;/p&gt;

&lt;p&gt;A few thousand times per second? Congratulations. You've invented a denial-of-service attack against your own feature flag provider. That's where caching comes in.&lt;/p&gt;

&lt;h2&gt;
  
  
  How FeatureFlags.app Caches Flags
&lt;/h2&gt;

&lt;p&gt;The FeatureFlags.app client retrieves feature definitions over HTTP, but it doesn't make that HTTP request every time your application evaluates a flag. Instead, the client uses &lt;code&gt;IMemoryCache&lt;/code&gt; to cache the complete set of feature definitions. The default cache expiration is &lt;strong&gt;15 minutes&lt;/strong&gt;, and you can configure it with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureFlags"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"CacheExpirationInMinutes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's also an explicit &lt;code&gt;ClearCache()&lt;/code&gt; method when you need to force a refresh. So instead of this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Every request
     ↓
Application → HTTP → FeatureFlags.app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You get something more like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;First request

Application
     ↓
Cache miss
     ↓
HTTP
     ↓
FeatureFlags.app
     ↓
Feature definitions
     ↓
Cache


Subsequent requests

Application
     ↓
Cache
     ↓
Feature definitions
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Much less exciting for your network stack.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which is the point.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Trade-Off: Freshness vs Performance
&lt;/h2&gt;

&lt;p&gt;Caching always involves a trade-off. With a 15-minute cache expiration, a feature flag change made in FeatureFlags.app may not immediately appear in every application instance. That's intentional. You're trading some freshness for performance and resilience.&lt;/p&gt;

&lt;p&gt;If you need changes to propagate more quickly, you can lower the cache expiration. Or explicitly clear the cache when appropriate. There's another important detail if you're running multiple application instances:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;IMemoryCache&lt;/code&gt; is local to each process.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So if you have five application instances, you effectively have five separate caches.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;              FeatureFlags.app
                /    |    \
               /     |     \
           Cache   Cache   Cache
             ↓       ↓       ↓
           App 1   App 2   App 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each instance refreshes its own cached feature definitions. That's worth remembering when you're wondering why one instance appears to have a different flag state from another during the cache window.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Other Services Do It
&lt;/h2&gt;

&lt;p&gt;Caching isn't the only approach. Some feature flag platforms use server-side SDKs that maintain feature flag state locally and receive updates through streaming. Instead of polling periodically, the service pushes changes to the SDK. The architecture looks something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Feature Flag Service
        ↓
  Streaming Updates
        ↓
    Local SDK
        ↓
   Cached Rules
        ↓
 Flag Evaluation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important part is still the same:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Flag evaluations happen locally.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The application doesn't need to make a network request every time it checks a flag. This approach can provide extremely fast evaluations, rapid updates, and the ability to continue using the last known state if the feature flag service temporarily disappears. It's a great architecture. It's also considerably more sophisticated and potentially more expensive to build and operate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Different Tools, Same Goal
&lt;/h2&gt;

&lt;p&gt;There are several ways to implement feature flag caching:&lt;/p&gt;

&lt;h3&gt;
  
  
  Microsoft.FeatureManagement
&lt;/h3&gt;

&lt;p&gt;Relies on .NET's configuration infrastructure.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Configuration
      ↓
Feature Management
      ↓
Application
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  FeatureFlags.app
&lt;/h3&gt;

&lt;p&gt;Uses an in-memory cache with a configurable expiration time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FeatureFlags.app
      ↓
 HTTP
      ↓
IMemoryCache
      ↓
Feature Management
      ↓
Application
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Streaming SDKs
&lt;/h3&gt;

&lt;p&gt;Maintain locally cached rules and receive updates from the server.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Vendor
   ↓
Streaming Updates
   ↓
Local SDK Cache
   ↓
Flag Evaluation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Different implementations. Same fundamental goal. Don't make feature flag evaluation depend on a network round trip. Your application has enough exciting problems already.&lt;/p&gt;

&lt;p&gt;If you're using .NET and want a simple way to manage remote feature flags while keeping evaluations local and fast, check out &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt;. Your API server will appreciate the break.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cache the flags. Not your regrets.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>featureflags</category>
      <category>dotnet</category>
      <category>caching</category>
      <category>aspnetcore</category>
    </item>
    <item>
      <title>Microsoft Feature Management Quirks (and How to Survive Them)</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Fri, 21 Aug 2026 16:33:44 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/microsoft-feature-management-quirks-and-how-to-survive-them-54d1</link>
      <guid>https://dev.to/avlcodemonkey-industries/microsoft-feature-management-quirks-and-how-to-survive-them-54d1</guid>
      <description>&lt;p&gt;&lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt; is solid, widely used, and much better than building your own feature flag framework in a caffeine panic. But it has quirks. None are fatal. Most are avoidable if you know where the sharp edges are.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your Flag Names Are Strings Forever
&lt;/h2&gt;

&lt;p&gt;Feature names are strings. That means typos compile perfectly and fail at runtime in the most boring way possible. You configure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_featureManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"NewDashbaord"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Spot the typo? The compiler doesn't. Your shiny new UI never appears, and you spend an afternoon questioning your life choices.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix
&lt;/h3&gt;

&lt;p&gt;Centralize your flag names.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;FeatureFlags&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;NewDashboard&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;const&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;ExperimentalSearch&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"ExperimentalSearch"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then use them everywhere:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_featureManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FeatureFlags&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NewDashboard&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or build a strongly typed wrapper if your application has enough flags to justify it. The important part is simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stop scattering magic strings throughout your controllers, services, tag helpers, and filters.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Your typo budget is already being spent elsewhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuration Shape Is Less Forgiving Than It Looks
&lt;/h2&gt;

&lt;p&gt;The library expects a specific configuration layout under &lt;code&gt;FeatureManagement&lt;/code&gt;. If you typo the section name, misconfigure &lt;code&gt;EnabledFor&lt;/code&gt;, or get creative with the JSON structure, your flags may not behave as expected. Then it looks like the framework is "ignoring" your configuration. It isn't. Your JSON is probably wrong.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix
&lt;/h3&gt;

&lt;p&gt;Keep one canonical configuration example in your repository. Test it. Validate important configuration through integration tests. And avoid turning &lt;code&gt;appsettings.json&lt;/code&gt; into an experimental art project. A known-good example is much easier to maintain than debugging configuration structure at 4pm on a Friday.&lt;/p&gt;

&lt;h2&gt;
  
  
  Filter Behavior Depends on Context Quality
&lt;/h2&gt;

&lt;p&gt;Percentage rollouts sound straightforward. Enable a feature for 20% of users. Easy. Except &lt;code&gt;PercentageFilter&lt;/code&gt; evaluates randomly, so the same user can potentially get different results across requests. That's fine for coarse rollouts. It's less fine when you expect a user to consistently see the same version of a feature.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix
&lt;/h3&gt;

&lt;p&gt;If you need stable per-user behavior, use &lt;code&gt;ConsistentPercentageFilter&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In ASP.NET Core scenarios, it can use the current principal identity as a stable user key and assign that user to a deterministic bucket. The catch? Your context still matters. If the user identity is missing or changes between requests, the results can still look random. So before blaming the feature flag library, make sure you're actually giving it a consistent identity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Garbage context in. Confusing rollout behavior out.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;IsEnabledAsync&lt;/code&gt; Everywhere Means You Can Re-Evaluate a Lot
&lt;/h2&gt;

&lt;p&gt;Feature flag checks are asynchronous. They're also extremely easy to sprinkle throughout your application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_featureManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FeatureFlags&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NewDashboard&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Do something&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then somewhere deeper in the same request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_featureManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FeatureFlags&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NewDashboard&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Do something else&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And again. And again. Before long, you're evaluating the same flag multiple times in one request path.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix
&lt;/h3&gt;

&lt;p&gt;When appropriate, evaluate the flag once and pass the result through the relevant operation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;isNewDashboardEnabled&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_featureManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FeatureFlags&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NewDashboard&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Use isNewDashboardEnabled throughout this operation&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives you clearer behavior and fewer opportunities for surprising changes between evaluations. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;IFeatureManager&lt;/code&gt; vs. &lt;code&gt;IFeatureManagerSnapshot&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;You can inject either &lt;code&gt;IFeatureManager&lt;/code&gt; or &lt;code&gt;IFeatureManagerSnapshot&lt;/code&gt;. And the choice matters. For request-heavy applications, snapshot semantics are often what you actually want. &lt;code&gt;IFeatureManagerSnapshot&lt;/code&gt; provides consistency for the lifetime of a request or scope, so repeated checks can use the same evaluated state. That's useful when you don't want feature behavior changing halfway through an operation.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix
&lt;/h3&gt;

&lt;p&gt;Prefer &lt;code&gt;IFeatureManagerSnapshot&lt;/code&gt; when consistent per-request behavior matters. Be intentional when using the non-snapshot manager. The important question isn't:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Which interface compiles?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;They both do.&lt;/p&gt;

&lt;p&gt;The question is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Could evaluating this flag differently during the same operation cause problems?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If the answer is yes, snapshot semantics are probably worth considering.&lt;/p&gt;

&lt;h2&gt;
  
  
  None of This Is a Dealbreaker
&lt;/h2&gt;

&lt;p&gt;Microsoft's feature management library is still a great default choice for .NET applications. Most of the pain comes from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Naming drift&lt;/li&gt;
&lt;li&gt;Configuration mistakes&lt;/li&gt;
&lt;li&gt;Context assumptions&lt;/li&gt;
&lt;li&gt;Repeated evaluations&lt;/li&gt;
&lt;li&gt;Not thinking about evaluation consistency&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The framework is fine. Your future self just wants fewer typo-driven incidents. Add some guardrails, centralize your flag names, test your configuration, and understand how your filters and evaluation scope behave. Then you get the benefits of feature flags without quite as many mystery bugs.&lt;/p&gt;

&lt;p&gt;And if you're tired of managing flags through configuration files, &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt; gives you a central place to manage them without turning every flag change into an adventure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Know the quirks. Add the guardrails. Ship anyway.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>featureflags</category>
      <category>microsoft</category>
    </item>
    <item>
      <title>Cleaning Up Feature Flags: The Art of Not Leaving a Mess</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Thu, 20 Aug 2026 18:39:52 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/cleaning-up-feature-flags-the-art-of-not-leaving-a-mess-4ojl</link>
      <guid>https://dev.to/avlcodemonkey-industries/cleaning-up-feature-flags-the-art-of-not-leaving-a-mess-4ojl</guid>
      <description>&lt;p&gt;You said you'd remove that flag after launch. You lied. It's been six months and the flag is still in &lt;code&gt;appsettings.json&lt;/code&gt;, the &lt;code&gt;if&lt;/code&gt; statement is still in your controller, and nobody remembers which state is "on." This is how codebases turn into haunted houses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Cleanup Matters
&lt;/h2&gt;

&lt;p&gt;Dead feature flags are &lt;strong&gt;technical debt with teeth&lt;/strong&gt;. They add branches to your code that nobody tests. They confuse new developers who don't know the history. They inflate configuration files and make deployments harder to reason about. And they compound.&lt;/p&gt;

&lt;p&gt;Every flag you don't clean up makes the next cleanup harder because the cognitive load of understanding the system keeps increasing. The cost of removing a flag is lowest immediately after the feature ships, while everyone still remembers what the thing does. Six months later? Good luck.&lt;/p&gt;

&lt;h2&gt;
  
  
  Track Every Flag
&lt;/h2&gt;

&lt;p&gt;You can't clean up what you can't find. Maintain a registry of every active feature flag with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Name&lt;/li&gt;
&lt;li&gt;Purpose&lt;/li&gt;
&lt;li&gt;Owner&lt;/li&gt;
&lt;li&gt;Date created&lt;/li&gt;
&lt;li&gt;Expected removal date&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This can be a spreadsheet, an issue tracker, internal documentation, or a dedicated feature flag management system. The format doesn't matter nearly as much as the habit. When you add a flag, add it to the registry. When you remove a flag, remove it from the registry. If your registry contains flags with no owner or no removal date, congratulations: you've found your next cleanup project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set Expiry Dates
&lt;/h2&gt;

&lt;p&gt;Every flag should have a planned removal date when it's created. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Release toggles:&lt;/strong&gt; Remove shortly after the feature ships. Two weeks is a reasonable default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Experiment toggles:&lt;/strong&gt; Remove when the experiment concludes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ops toggles:&lt;/strong&gt; May be permanent by design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permission toggles:&lt;/strong&gt; May also be permanent, but document that explicitly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a flag has been alive longer than its planned expiry and nobody deliberately extended it, it's already a zombie. Treat it accordingly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make Cleanup Part of the Process
&lt;/h2&gt;

&lt;p&gt;Flag cleanup doesn't happen unless someone owns it. Add a cleanup step to your feature completion checklist. Better yet, create the cleanup ticket &lt;strong&gt;when you create the feature ticket&lt;/strong&gt;. The feature isn't done when it's released. It's done when the flag is gone.&lt;/p&gt;

&lt;p&gt;Some teams set automated alerts when flags exceed their planned lifetime. Others track flag counts on engineering dashboards. The specific mechanism doesn't matter much. Having a mechanism does.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Actually Remove a Flag
&lt;/h2&gt;

&lt;p&gt;Removing a flag isn't just deleting an &lt;code&gt;if&lt;/code&gt; statement. Here's the full checklist:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Determine which state the flag should permanently be in. Usually &lt;code&gt;enabled&lt;/code&gt; if the feature shipped successfully.&lt;/li&gt;
&lt;li&gt;Remove the flag check and keep the code from the permanent path.&lt;/li&gt;
&lt;li&gt;Delete the disabled code path completely. &lt;strong&gt;Don't comment it out.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Remove the flag definition from configuration and your flag management system.&lt;/li&gt;
&lt;li&gt;Update or remove tests that specifically covered the disabled state.&lt;/li&gt;
&lt;li&gt;Delete the flag from your registry.&lt;/li&gt;
&lt;li&gt;Deploy and verify.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 3 is where people get lazy. Commented-out code isn't deleted code. It's just code waiting to confuse someone six months from now. &lt;strong&gt;Delete it.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Goal
&lt;/h2&gt;

&lt;p&gt;A well-maintained codebase has only the feature flags it actually needs. Each flag should be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Documented&lt;/li&gt;
&lt;li&gt;Owned&lt;/li&gt;
&lt;li&gt;Understandable&lt;/li&gt;
&lt;li&gt;Actively used&lt;/li&gt;
&lt;li&gt;Scheduled for removal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Clean up isn't a one-time event. It's an ongoing engineering practice. Feature flags should make your system easier to operate, not turn it into an archaeological dig.&lt;/p&gt;

&lt;p&gt;If you want to make it easy to clean up your feature flags without editing configuration files in production, check out &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The only good zombie flag is a deleted one.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>featureflags</category>
      <category>technicaldebt</category>
      <category>codequality</category>
      <category>devops</category>
    </item>
    <item>
      <title>Feature Flags and Testing: Because QA Deserves Surprises Too</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Wed, 19 Aug 2026 17:59:43 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/feature-flags-and-testing-because-qa-deserves-surprises-too-2i0c</link>
      <guid>https://dev.to/avlcodemonkey-industries/feature-flags-and-testing-because-qa-deserves-surprises-too-2i0c</guid>
      <description>&lt;p&gt;Feature flags solve a lot of deployment problems. They also create a whole new set of testing problems. Every flag introduces a branch in your code. Every branch needs to be tested. The math gets uncomfortable fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  The State Explosion Problem
&lt;/h2&gt;

&lt;p&gt;One feature flag means two states: &lt;strong&gt;On. Off.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Two flags means four states. Ten flags means &lt;strong&gt;1,024 possible combinations&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You are not going to test all of them. Nobody is. But some of those combinations will behave unexpectedly, and your users will find them at the worst possible time. The practical approach is to identify which flag combinations actually matter for your application and test those specifically.&lt;/p&gt;

&lt;p&gt;Flags that affect the same feature or code path are more likely to interact badly. Flags for completely independent features probably don't need to be tested together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test Every State of Every Flag
&lt;/h2&gt;

&lt;p&gt;At a minimum, every flag should be tested in both its enabled and disabled states. This sounds obvious. It's also incredibly easy to forget. When adding a flag, developers tend to test the shiny new code path and forget to verify that the old path still works. Don't. Write explicit tests for both states:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Fact&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt; &lt;span class="nf"&gt;Index_ReturnsNewDashboard_WhenFlagEnabled&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Arrange&lt;/span&gt;
    &lt;span class="n"&gt;_featureManager&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Setup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fm&lt;/span&gt; &lt;span class="p"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;fm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ReturnsAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// Act&lt;/span&gt;
    &lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_controller&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Index&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

    &lt;span class="c1"&gt;// Assert&lt;/span&gt;
    &lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;viewResult&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Assert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IsType&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;ViewResult&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="n"&gt;Assert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Equal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;viewResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ViewName&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;Fact&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt; &lt;span class="nf"&gt;Index_ReturnsOldDashboard_WhenFlagDisabled&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Arrange&lt;/span&gt;
    &lt;span class="n"&gt;_featureManager&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Setup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fm&lt;/span&gt; &lt;span class="p"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;fm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ReturnsAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;false&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// Act&lt;/span&gt;
    &lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_controller&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Index&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

    &lt;span class="c1"&gt;// Assert&lt;/span&gt;
    &lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;viewResult&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Assert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IsType&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;ViewResult&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;(&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="n"&gt;Assert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Equal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"OldDashboard"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;viewResult&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ViewName&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both tests matter. &lt;strong&gt;Don't skip the disabled case.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's usually the code path everyone assumes will keep working forever.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the Flag Infrastructure
&lt;/h2&gt;

&lt;p&gt;Here's another fun question: &lt;strong&gt;What happens when your flag service is unavailable?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Nobody's perfect. Your application should have a defined behavior when the flag infrastructure goes down. A safe default is usually to treat the flag as disabled. And yes, that behavior should be tested. "Works on my machine when the flag server is up" is not a test strategy.&lt;/p&gt;

&lt;p&gt;Write tests that simulate a flag service outage and verify that your application degrades gracefully. Users shouldn't see an error because a configuration service had a brief hiccup. The important part is that &lt;strong&gt;you know what happens and you've tested it.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Automate Everything
&lt;/h2&gt;

&lt;p&gt;Manual testing of feature flag states doesn't scale. Have ten active flags? Asking QA to manually verify both states of every flag before every release is a fantastic way to produce burnout, missed coverage, and possibly a strongly worded email.&lt;/p&gt;

&lt;p&gt;Automate it. Your CI pipeline should run your flag-state tests automatically. Use mocks or test configuration to control flag values in your test suite.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't make your CI pipeline depend on a live flag server.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Your tests should be deterministic. Your production infrastructure can provide enough chaos on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Document Expected Behavior
&lt;/h2&gt;

&lt;p&gt;For every flag, document what the application should do when the flag is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enabled&lt;/li&gt;
&lt;li&gt;Disabled&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That documentation becomes the specification your tests enforce. Without documentation, "works on my machine" becomes the de facto specification. With documentation, everyone has a shared understanding of what correct behavior actually means. That makes it easier to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write tests&lt;/li&gt;
&lt;li&gt;Review code&lt;/li&gt;
&lt;li&gt;Diagnose bugs&lt;/li&gt;
&lt;li&gt;Understand old flags&lt;/li&gt;
&lt;li&gt;Remove flags safely&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also makes explaining expected behavior to the person filing the bug report considerably easier.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Point
&lt;/h2&gt;

&lt;p&gt;Feature flags give you control. Testing makes sure that control doesn't turn into chaos. For every flag:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Test the enabled state.&lt;/li&gt;
&lt;li&gt;Test the disabled state.&lt;/li&gt;
&lt;li&gt;Test important flag combinations.&lt;/li&gt;
&lt;li&gt;Test what happens when the flag infrastructure fails.&lt;/li&gt;
&lt;li&gt;Automate the tests in CI.&lt;/li&gt;
&lt;li&gt;Document the expected behavior.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And when the feature is fully released?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delete the flag.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fewer flags mean fewer states, fewer tests, and fewer opportunities for your codebase to develop a personality disorder.&lt;/p&gt;

&lt;p&gt;If you need a simple way to manage your feature flags without building your own flag infrastructure, check out &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test everything. Automate all of it. Document what you expect. Try not to cry.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>featureflags</category>
      <category>testing</category>
      <category>qa</category>
      <category>dotnet</category>
    </item>
    <item>
      <title>Implementing Feature Management in .NET: The Lazy Way</title>
      <dc:creator>AvlCodeMonkey</dc:creator>
      <pubDate>Tue, 18 Aug 2026 18:57:53 +0000</pubDate>
      <link>https://dev.to/avlcodemonkey-industries/implementing-feature-management-in-net-the-lazy-way-gcb</link>
      <guid>https://dev.to/avlcodemonkey-industries/implementing-feature-management-in-net-the-lazy-way-gcb</guid>
      <description>&lt;p&gt;Microsoft did the hard work so you don't have to.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;Microsoft.FeatureManagement&lt;/code&gt; library integrates directly with .NET's configuration and dependency injection systems, which means you can get feature flags working with minimal code and a solid foundation. For the full documentation, check out the &lt;a href="https://learn.microsoft.com/en-us/azure/azure-app-configuration/feature-management-dotnet-reference" rel="noopener noreferrer"&gt;Microsoft Feature Management documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Let's get this thing running.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;Add the NuGet package to your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dotnet add package Microsoft.FeatureManagement.AspNetCore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it for dependencies. No magic rituals required.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;

&lt;p&gt;Register the feature management services in &lt;code&gt;Program.cs&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="n"&gt;builder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Services&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;AddFeatureManagement&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By default, feature flags are read from the &lt;code&gt;FeatureManagement&lt;/code&gt; section of your &lt;code&gt;appsettings.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"ExperimentalSearch"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Flag names are strings. Values are booleans. Simple.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking a Flag in Code
&lt;/h2&gt;

&lt;p&gt;Inject &lt;code&gt;IFeatureManager&lt;/code&gt; wherever you need to check a flag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;DashboardController&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Controller&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="k"&gt;readonly&lt;/span&gt; &lt;span class="n"&gt;IFeatureManager&lt;/span&gt; &lt;span class="n"&gt;_featureManager&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;DashboardController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;IFeatureManager&lt;/span&gt; &lt;span class="n"&gt;featureManager&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;_featureManager&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;featureManager&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;IActionResult&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;Index&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;_featureManager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;IsEnabledAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;View&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;View&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"OldDashboard"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the whole pattern. &lt;strong&gt;Inject. Check. Branch. Repeat.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Using Feature Filters
&lt;/h2&gt;

&lt;p&gt;Boolean flags are useful, but sometimes you need something a little more sophisticated. The library supports feature filters for things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Percentage rollouts&lt;/li&gt;
&lt;li&gt;Time windows&lt;/li&gt;
&lt;li&gt;User targeting&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, you can enable a feature for a percentage of requests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"FeatureManagement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"BetaFeature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"EnabledFor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Percentage"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"Parameters"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"Value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This enables &lt;code&gt;BetaFeature&lt;/code&gt; for 20% of requests. The library handles the sampling. You handle the business logic. Everybody wins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Razor Tag Helpers
&lt;/h2&gt;

&lt;p&gt;Building a Razor-based UI? The library includes a tag helper for conditionally rendering markup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;feature&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"NewDashboard"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"new-dashboard"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;...&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/feature&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clean, readable, and no C# in your markup. Some people consider this progress.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Lazy Way Is Often the Right Way
&lt;/h2&gt;

&lt;p&gt;Rolling your own feature flag system is a rite of passage. It's also probably not a good use of your time. Microsoft's library already handles the plumbing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Configuration&lt;/li&gt;
&lt;li&gt;Dependency injection&lt;/li&gt;
&lt;li&gt;Feature filters&lt;/li&gt;
&lt;li&gt;Percentage rollouts&lt;/li&gt;
&lt;li&gt;Razor tag helpers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So you can focus on the actual feature instead of spending three days building a flag system that was supposed to take an afternoon. &lt;/p&gt;

&lt;p&gt;But there's one problem with the &lt;code&gt;appsettings.json&lt;/code&gt; approach:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Someone still has to edit the config file when you want to flip a flag.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And if that means changing configuration, committing it, deploying it, and waiting for the pipeline just to turn off a broken feature...&lt;/p&gt;

&lt;p&gt;You've basically recreated the problem feature flags were supposed to solve.&lt;/p&gt;

&lt;p&gt;A dedicated feature flag management UI lets you change flags without touching your configuration files or redeploying your application.&lt;/p&gt;

&lt;p&gt;That's where &lt;a href="https://featureflags.app/" rel="noopener noreferrer"&gt;FeatureFlags.app&lt;/a&gt; comes in.&lt;/p&gt;

&lt;p&gt;Why reinvent the wheel when someone already built the wheel factory?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Be lazy. Ship more.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>featureflags</category>
      <category>microsoft</category>
    </item>
  </channel>
</rss>
