Comments (8)
Hello @wen-git-acc,
This is expected behavior from the Azure App Configuration configuration provider. This is because the provider is designed to perform a refresh when a request is made, but it is done in parallel to the request to avoid slowing the request down. There are a few downsides that arise from deviating from this model. Can you explain a bit the problem that this is causing so I may offer a suggestion?
from featuremanagement-dotnet.
Hi @jimmyca15
Based on our design, the desktop application will be querying the API to retrieve set of feature status during the start up. It means that the user have to boot up the application twice in order to retrieve latest feature state (if any feature is toggled on azure portal), which is not ideal in our use case. Hence, I am looking if there is any work around to request the latest change update instead of sending request twice to retrieve the latest state.
from featuremanagement-dotnet.
While looking through previous few issues post, understand that we could not disable caching. Is there any way for me to refresh configuration in every request on purpose so that my IsEnabledAsync could have query the latest change from azure config service?
Besides, I have found this url, curious to know that does it works on feature flag items and will it increase cost of using azure config service since we are making more request.
from featuremanagement-dotnet.
Hi, is there any update on this?
from featuremanagement-dotnet.
Is there any way for me to refresh configuration in every request on purpose so that my IsEnabledAsync could have query the latest change from azure config service?
Yes. You can call IConfigurationProvider.RefreshAsync
during the request pipeline and await it. This will ensure that the refresh completes before your code evaluates the flag. The refresh will still be subject to the configured cache interval.
This has the downsides that I mentioned that now the requests success and response time is now dependent upon the success of the refresh operation.
from featuremanagement-dotnet.
Hello @wen-git-acc, does this solve the issue?
from featuremanagement-dotnet.
@wen-git-acc The suggested approach should be able to solve the issue. Please feel free to re-open if anything is missed.
from featuremanagement-dotnet.
Hi @jimmyca15 , sorry missed out to reply. For your information, the above method only work without use azure configuration middleware :) Definitely solved my issue, thanks for your help
from featuremanagement-dotnet.
Related Issues (20)
- The TargetingId should be included in the FeatureEvaluation event even if it's null/empty. HOT 5
- Targeting evaluation is CPU dependent. HOT 4
- Remove the support for variants and telemetry from the .NET feature flag schema HOT 14
- Include Targeting Information on outgoing telemetry HOT 2
- Support .NET 8 Targeting framework in Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore
- Target netstandard2.* in Microsoft.FeatureManagement.Telemetry.ApplicationInsights
- The approach to telemetry (using custom `ITelemetryPublisher`) seems overengineered and counter to modern OpenTelemetry abstractions HOT 37
- Add Default Http Targeting Context Accessor
- Consider moving `TargetingHttpContextMiddleware` to the App Insights package HOT 3
- No instance of ITargetingContextAccessor is available for variant assignment. HOT 6
- FeatureManagerSnapshot should snapshot TargetingContext as well
- EvaluationDataToApplicationInsights example
- Can't Set FeatureFilters In FeatureManager In .NET Framework Application HOT 10
- Update Package metadata
- Add a link to preview on main readme HOT 1
- Cannot use the TargetingFilter in .NET class library project HOT 3
- Nuget "Microsoft.FeatureManagement.AspNetCore" Version 3.3.0 - Multiple feature filters match the configured filter named 'Microsoft.TimeWindow' HOT 8
- Consider using `TimeProvider` using Microsoft.Bcl.TimeProvider nuget package HOT 2
- Bug 4.0.0-preview: NullReferenceException when TargetingContext.UserId is null and TargetingEvaluationOption.IgnoreCase = true
- Consider the ability to allocate variants based on custom filters HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from featuremanagement-dotnet.