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.