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

How to fix: Azure Spring Boot feature flags not refreshed on cache expiration. The verified fix from the maintainer thread, distilled into reusable steps.

What happened

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

Evidence

In the thread Azure Spring Boot feature flags not refreshed on cache expiration, 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: 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 discussion: https://vectle.com/threads/thr_dGx0rMl6VYL3aTqFsjCN0w

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_YncB422_pcxH6cBS4Ph1KQ" 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>