Azure App Configuration Feature Flags in Blazor WASM App: Performance Concerns and Optimization

NavarathinamJaisankar-3207 0 Reputation points
2025-05-28T14:53:44.1033333+00:00

Dear Team,

The implementation of Azure App Configuration Feature Flags in a Blazor WASM application allows for displaying a maintenance page based on feature flag status. However, there is a concern regarding performance when calling the API for feature flags on every page navigation. it is working fine as expected but concern is cost when every page navigation calling API to check state of the feature flags.

The current setup involves checking the feature flags via API on each navigation, with a caching strategy set to refresh every 60 seconds. The question is whether this approach may lead to performance issues and what optimized solutions exist to efficiently manage feature flag updates while still being able to display a maintenance page to end users when needed.

Additionally, cost implications related to the Azure App Service and Azure App Configuration are noted, along with considerations for using Event Grid for push/pull notifications, which may introduce further costs.

Looking for guidance on best practices to optimize this feature flag implementation without compromising performance or incurring unnecessary costs.

Thanks,
Jai

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Harshitha Veeramalla 1,301 Reputation points Microsoft External Staff Moderator
    2025-05-30T06:29:23.9466667+00:00

    Hi @NavarathinamJaisankar-3207,

    The question is whether this approach may lead to performance issues

    • Yes, it can lead to the performance issues.
    • Every time when the user navigates to a new page, the application tries to call the backend to check the feature flag status. Which results in the repeated API traffic, even if the flag value hasn't changed.
    • API and App Configuration consumption increases with each page views.

    UI rendering will be delayed with each network call leading to high latency.

    Increases load on backend services, affecting the app performance and scalability.

    what optimized solutions exist to efficiently manage feature flag updates

    • Load the feature flag only once on App Initialization.

    This works well if flags won't change frequently, else you will see a delay of 1 or 2 min.

    • Or else you can cache feature flag in backend using IMemoryCache mechanism.
    • When Blazor WASM clients request feature flags, the backend responds from the cache instead of querying Azure App Configuration each time.

    This option Reduces Azure Load, Improves Performance, Minimizes Costs and Scales Better

    Refer this MSDoc which explains how to Reduce requests made to App Configuration

    Hope this helps


    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions, please reply back.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.