Skip to main content

4 posts tagged with "ASP.NET"

View All Tags

Using ConfigCat Feature Flags in ASP.NET Core Web API

· 9 min read
Emil Kovačević
Code hard, debug harder.
Chavez Harris
Build. Break. Learn. Repeat.

ASP.NET Core APIs often need to change behavior without requiring a new deployment. You might want to release functionality to a small group of users, make a feature available only to certain subscription tiers, or quickly disable a problematic change.

Feature flags make this possible by letting you change behavior remotely without modifying and redeploying your code.

In this tutorial, we'll build a simple ASP.NET Core Web API and use a ConfigCat feature flag to control if it returns a two-day or five-day weather forecast. Then, we'll add a targeting rule so only users on a premium subscription receive the full forecast.

Feature Flags in ASP .NET Core Web API cover

A/B Testing in .NET: An ASP.NET Core Tutorial

· 18 min read
Emil Kovačević
Code hard, debug harder.
Chavez Harris
Build. Break. Learn. Repeat.

A/B testing lets you compare two versions of a feature with real users and measure which one performs better. In an ASP.NET Core application, feature flags can handle which variation a user sees, while an analytics platform measures what happens afterward.

In this guide, we'll show you how to run an A/B test in ASP.NET Core using .NET 10, ConfigCat for experiment assignment, and Amplitude for analytics. We'll split users between two versions of an Add to Cart button and measure whether the change affects user behavior.

A/B test variations

How to Use Feature Flags in ASP.NET Core MVC

· 12 min read
Roxana Halați
I'm pretty cool, but I cry a lot.
Chavez Harris
Build. Break. Learn. Repeat.

Want to enable or disable features in your ASP.NET Core MVC application without deploying new code? With feature flags, you can control which features users see and change their availability remotely.

In this tutorial, you'll learn how to implement feature flags in ASP.NET Core MVC using the ConfigCat .NET SDK. We'll build a simple application where a feature flag controls the visibility of a mailing list subscription button. You'll see how to integrate ConfigCat, evaluate a feature flag in an MVC controller, and conditionally render elements in a Razor view.

By the end, you'll be able to turn the button on or off directly from the ConfigCat Dashboard, without rebuilding or redeploying your application.

How to Use Feature Flags in ASP.NET Core MVC cover