FEATURE FLAGS in ASP NET Core | Azure App Configuration | Getting Started With ASP.NET Core Series
Тәжірибелік нұсқаулар және стиль
Hello Friends, Feature flags also referred to as Feature Toggles are a powerful technique to modify application behaviour without changing code. They allow features to be turned on and off dynamically.
The .NET Core Feature Management libraries extend the framework with comprehensive feature flag support. These libraries are built on top of the .NET Core configuration system. Any .NET Core configuration provider is capable of acting as the backbone for feature flags.
In this video let's learn about the Feature management libraries in .NET, how we can use them in an ASP NET Core application, and the different ways to manage these feature toggles. We will learn how to add a simple boolean feature flag, add more advanced feature flag filters (PercentageFilter) and also create custom Feature Flag Filters.
To use feature flags effectively, we need to externalize all the feature flags used in the application. This allows modifying the application behaviour without modifying the application itself. We will use the Feature flags feature in Azure App Configuration to store feature flags for our application and retrieve them during runtime in our application.
00:00 - Introduction
01:50 - Add Feature Flag
09:12 - Feature Flag Attribute
12:38 - Advanced Feature Flags
17:43 - Custom Feature Flag Filter
23:40 - Feature Flags In Azure App Configuration
🔗Source Code - bit.ly/feature-flag-asp-net-core
🔗Feature Flags Library - github.com/microsoft/FeatureM...
Additional Watching
📹 Configuration - • CONFIGURATION in ASP.N...
📹 Azure App Configuration - • AZURE APP CONFIGURATIO...
📹Dependency Injection - • DEPENDENCY INJECTION i...
📹Middleware - • MIDDLEWARE in ASP.NET ...
📹 Managed Identity - • Azure SDK DefaultAzure...
📹 Filters- • FILTERS In ASP NET Cor...
📹ASP NET Core Series - • ASP.NET Core
LInks
🔗 App Configuration - docs.microsoft.com/en-us/azur...
🔗 Managed Identity - docs.microsoft.com/en-us/azur...
🔗 Event Grid Integration - docs.microsoft.com/en-us/azur...
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🎥 Recording Setup and Workflow - www.rahulpnath.com/blog/youtu...
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!
Пікірлер: 88
This is far better than Microsofts actual training/guidence for feature flags. Thank you!
I work in one of the big 4, and this helps to be better in my job. 🙏
@RahulNath
11 ай бұрын
Glad to hear that!! Thank you
So useful tool but probably not known to many. Thanks
@RahulNath
3 жыл бұрын
Very much an under-utilized feature, I agree!
Really useful in the cases of single branch development Model (y). Thanks for sharing and the demo.
@RahulNath
3 жыл бұрын
Absolutely yes. 'Feature Flag' Driven Development (FDD) 😀. Glad you liked it.
The best so far, please keep posting videos on Azure & .net we learn so much from your tutorials
@RahulNath
3 жыл бұрын
Thank you, I will Amine. Do drop in topic suggestions if you have any.
@amineherizi4687
3 жыл бұрын
@@RahulNath Azure CDN & application gateway
@indiantamizhan1289
3 жыл бұрын
Please do cover unit testing for ASP.NET CORE API
@RahulNath
3 жыл бұрын
@@indiantamizhan1289 Thank you for the suggestion. Sure yes coming out soon
@RahulNath
3 жыл бұрын
@@amineherizi4687 Noted and added to my list 👍
This is very neatly defined. The only "restriction" I see using this approach is that the FeatureManagement module can only be used in the App Service level ( like WebAPI, Service Fabric , Azure Functions...etc. ). I may be able to use this effectively in the business logic tier. I believe this was intentionally kept like that to make the design cleaner.
One of the best video about feature management and subscribed
@RahulNath
Ай бұрын
Glad you liked it! Do check out the full series bit.ly/asp-net-core-series
Great video, thanks for all the hard work!
@RahulNath
3 жыл бұрын
Glad you enjoyed it Chris! Thank you.
This is an excellent treatment of feature flags Rahul, especially the Azure App Configuration feature.
@RahulNath
2 жыл бұрын
Glad you liked it!
Very interesting video.., Grt Work done...
@RahulNath
2 жыл бұрын
Glad to hear that. This post might interest you as well if you are looking to manage sensitive info www.rahulpnath.com/blog/handling-application-configuration/
Following your Videos on .Net and Azure and they are really useful, Great Work.
@RahulNath
2 жыл бұрын
Glad you like them Prasad!
You are the god bro. No words for such amazing teaching.
@RahulNath
3 жыл бұрын
Glad its helping you Shreeniwas! But definitely not God 😀
Very nice. Thank you!
@RahulNath
2 жыл бұрын
Glad you liked it! Do check out the full series here bit.ly/asp-net-core-series
Excellent 👌
@RahulNath
3 жыл бұрын
Thanks a lot 😊
Another cool, useful and helpful vid from you, Rahul 👍👌👏
@RahulNath
2 жыл бұрын
Thanks a lot 😊And happy to see you around Patisan!
Really useful content. thanks for covering azure demo also in this tutorial.
@RahulNath
2 жыл бұрын
Glad it was helpful Kirankumar. Do check out the full series here kzread.info/head/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
Very good explanation, Thanks a lot
@RahulNath
3 жыл бұрын
You are welcome Sajid!
It will really help me. Thanks for such nice video.
@RahulNath
3 жыл бұрын
Most welcome Rohit 😊
Thank you Good Knowledge transfered to me .
@RahulNath
2 жыл бұрын
Glad to hear that Barwal!
Wonderful , Thank you so much Rahul.
@RahulNath
2 жыл бұрын
Most welcome Subrata!
Hi Rahul, Great presentation and well organized. Is it possible to create a custom filter with a property of type complex object ? if so , Are you able to share any sample code?
You are the best trainer for .Net core with valuable content of every minute in your videos. Could you please start angular series as well?
@RahulNath
3 жыл бұрын
Thank you and happy that you are liking it. With angular, I don't think any time soon. I mostly work with React (but again my main focus at the moment is backend). Thank you for the suggestion though 😀
@teluguvedam3048
3 жыл бұрын
@@RahulNath keep up the good work. Thanks for your response.
@RahulNath
3 жыл бұрын
@@teluguvedam3048 Sure 😀
Awesome! appreciate the clear voice.
@RahulNath
2 жыл бұрын
My pleasure Ajay! Hope you are enjoying the series bit.ly/asp-net-core-series
@ajaysonar662
2 жыл бұрын
@@RahulNath Yes I am ! I cant be a member yet, but I have brought few friends to subscribe to your channel and they also liked it very much. Thanks again !
@RahulNath
2 жыл бұрын
@@ajaysonar662 Thank you Ajay for spreading the word and happy to hear it's helping!!
Great `presentation!
@RahulNath
Жыл бұрын
Glad you liked it! Do check out the full series bit.ly/asp-net-core-series
@ashokansivapragasam2762
Жыл бұрын
@@RahulNath ofcourse, I wil! Thanks for next courses.
Nice explanation, Is it possible to share the feature flags to Reactjs/Angular application and have the same context of feature percentage shared between backend and frontend?
Thank you
@RahulNath
Жыл бұрын
You're welcome Ahmed! Hope you are enjoying the ASP Series bit.ly/asp-net-core-series
Hi Rahul, first of all very good video with good pace of rendition… I’ve a question. How to propagating the flag information to other projects in the solution? for example to the tests project or services project?
@RahulNath
2 жыл бұрын
Glad you liked the video. Are you planning to use a different App Configuration Instance for the test project? If not you can use labels for different environments (or tests) docs.microsoft.com/en-us/azure/azure-app-configuration/howto-labels-aspnet-core?tabs=core5x For main applications I would assume it all uses the same App configuration. The idea would be to reuse the same flag if the value in it is to mean the same for all the different apps using it. If you have further questions, feel free to reach out.
Hi Rahul, very very nice video 😎 My topic suggestion for the next videos is Repository Pattern and Unit Of Work in EF Core. It would be amazing if u can explain how to use them and their use cases. Thank u
@RahulNath
3 жыл бұрын
Thank you Ivan for the suggestion. Yes will do some videos around EF and associated patterns.
@ivanpesenti202
3 жыл бұрын
@@RahulNath thank u 🤓
Will be helpful if you can make Video on Azure Synapse.
@RahulNath
2 жыл бұрын
Thank you for the suggestion Prasad. Added it to my list
❤
@RahulNath
7 ай бұрын
👍bit.ly/asp-net-core-series
@praveenkumarp2322
6 ай бұрын
@@RahulNath hi Sir, I am unable to edit inline row in Handsontable in angular. Any suggestion
Very good video. Quick question - do you mind telling me which microphone you are using? I am looking to buy one and your audio is very good.
@RahulNath
3 жыл бұрын
Thank you Andrew. I use Rode podcaster. Full setup details here www.rahulpnath.com/blog/youtube-setup-and-workflow/ Happy to help if you have additional questions.
@andrewreiser3584
3 жыл бұрын
@@RahulNath Thank you for that. You're a gentleman and a scholar.
@RahulNath
3 жыл бұрын
@@andrewreiser3584 That's so nice of you 😀
Hi can we implement this with wcfservice in c# ?..... Can you please make a poc on that
Thank you for sharing this tutorial :) Is there some other alternative to technology like Feature Management? Standard pricing for this supports only 30k calls per hour
@RahulNath
2 жыл бұрын
Thank you Swati. 30k is sufficiently large enough. Are you seeing yourself crossing that limit? LaunchDarkly is another service that I have used and can recommend launchdarkly.com/ (Gives a lot more flexibility too)
@swatimaheshwari6521
2 жыл бұрын
@@RahulNath Thank you for the reply. Is there some similar solution for MVC solutions in .Net Framework too?
@RahulNath
2 жыл бұрын
@@swatimaheshwari6521 The libraries/nuget packages can be used from an MVC app as well. Are you facing any challenges ?
Hi, could you please make video on scale set servers deployment.
@RahulNath
3 жыл бұрын
Thank you for the suggestion. Assuming you are referring to VM Scale Sets. I've not been working much with virtual machines, so don't think I'll do one any time soon.
Guys FEATURE MANAGER in the portal is available to me, can some let me know whats the issue
@RahulNath
2 жыл бұрын
I guess you mean it's not available? Not sure why that would be though.
How to use cosmos Core/SQL api in React js? Can't find the document please help me
@RahulNath
3 жыл бұрын
The JavaScript library will be a good start docs.microsoft.com/en-us/javascript/api/overview/azure/cosmos-readme?view=azure-node-latest&WT.mc_id=AZ-MVP-5003875 Let know if that helps.
@poonkodithirumoorthi8057
3 жыл бұрын
I have tired this document it's not working.
@poonkodithirumoorthi8057
3 жыл бұрын
Do u have any other idea way to connect?
@RahulNath
3 жыл бұрын
@@poonkodithirumoorthi8057 What issue are you facing with the above document? What is your use case of connecting to Cosmos directly from a React SPA client app? Usually, I have a server-side API that would then talk to cosmos.
@poonkodithirumoorthi8057
3 жыл бұрын
I'm planning to connect database without serverside api/call?