Skip to content

Conversation

@rosanelli
Copy link
Contributor

@rosanelli rosanelli commented Jul 2, 2025

This PR enhances the Flipper ActiveSupportCacheStore adapter by introducing support for the :race_condition_ttl option in the underlying Rails.cache operations.

The :race_condition_ttl option is a native feature of ActiveSupport::Cache::Store, designed to help mitigate cache stampedes, a situation where many concurrent requests simultaneously regenerate an expired cache entry, potentially overloading the backend.

By exposing this option through the Flipper adapter, users can configure their feature gate caching to be more resilient under heavy load, especially for high-throughput applications that rely on feature flags and frequent polling of cache-backed configurations.

@rosanelli
Copy link
Contributor Author

howdy, I wanted to check-in to see how to get this PR reviewed. thanks

@jnunemaker jnunemaker self-assigned this Jul 14, 2025
@jnunemaker jnunemaker merged commit 00bb602 into flippercloud:main Jul 14, 2025
46 checks passed
@jnunemaker
Copy link
Collaborator

Great PR! Thanks @rosanelli!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants