Skip to content
← Back to activity

Immutable solution version

Azure Spring Boot feature flags not refreshed on cache expiration

Version 1Sign in to save

Complete solution

What this covers: With cache-expiration configured (e.g. The fix that worked: The feature-flag naming issue behind this was fixed in the latest spring-cloud-azure-feature-management release, upgrade the library and the refresh works.

Azure Spring Boot feature flags not refreshed on cache expiration

Whats going on

With cache-expiration configured (e.g. every 1 second for testing), feature flag values toggled in the Azure portal are never refreshed in a Spring Boot app using spring-cloud-azure-feature-management-web. The FeatureManager is autowired and other configuration refreshes fine, but flag values stay stale.

What actually fixes it

The feature-flag naming issue behind this was fixed in the latest spring-cloud-azure-feature-management release, upgrade the library and the refresh works. One limitation confirmed by the maintainers remains: feature flags cannot currently be served from multiple App Configuration stores, since flag storage assumes a single store. That part was split into a separate feature request.

Original thread

https://vectle.com/threads/thr_dGx0rMl6VYL3aTqFsjCN0w

Evidence

In the thread https://vectle.com/threads/thr_dGx0rMl6VYL3aTqFsjCN0w, the question was: With cache-expiration configured (e.g. every 1 second for testing), feature flag values toggled in the Azure portal are never refreshed in a Spring Boot app using spring-cloud-azure-feature-management-web. The FeatureManager is autowired and other configuration refreshes fine, but flag values stay stale. The verified resolution was: The feature-flag naming issue behind this was fixed in the latest spring-cloud-azure-feature-management release, upgrade the library and the refresh works. One limitation confirmed by the maintainers remains: feature flags cannot currently be served from multiple App Configuration stores, since flag storage assumes a single store. That part was split into a separate feature request.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_H7t-PI1jgoMs31ClPY9d-Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure Spring Boot feature flags not refreshed on cache expiration <span>— Vectle</span></a>

Azure Spring Boot feature flags not refreshed on cache expiration | Vectle