Skip to content

Conversation

@arturobernalg
Copy link
Member

This change adds an optional request collapsing mechanism to the async caching executor to prevent multiple concurrent requests from fetching the same cacheable resource on a cold miss. When enabled, a single leader request is allowed to proceed to the backend while followers wait and then re-check the cache once the leader completes. The feature is disabled by default and is covered by unit tests for the collapser and an integration-style test validating that backend requests are reduced to one under concurrency.

Serialize concurrent cold misses per cache key to avoid duplicate backend fetches.
Add CacheRequestCollapser and tests covering coordination and end-to-end behavior.
@arturobernalg arturobernalg requested a review from ok2c January 11, 2026 17:58
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.

1 participant