Giter Club home page Giter Club logo

Comments (8)

jimmyca15 avatar jimmyca15 commented on September 1, 2024

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.

wen-git-acc avatar wen-git-acc commented on September 1, 2024

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.

wen-git-acc avatar wen-git-acc commented on September 1, 2024

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.

wen-git-acc avatar wen-git-acc commented on September 1, 2024

Hi, is there any update on this?

from featuremanagement-dotnet.

jimmyca15 avatar jimmyca15 commented on September 1, 2024

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.

jimmyca15 avatar jimmyca15 commented on September 1, 2024

Hello @wen-git-acc, does this solve the issue?

from featuremanagement-dotnet.

jimmyca15 avatar jimmyca15 commented on September 1, 2024

@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.

wen-git-acc avatar wen-git-acc commented on September 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.