Skip to content

Conversation

@jwadhams
Copy link
Collaborator

Adds a new type of request ancestor. This has two cache timeouts, a short one indicates when it's time to start a background process to revalidate the data. A long one holds on to a known good result for a maximum hold time.

When a request is asked for that is later than the refreshCacheKey we return the responseFromCache and defer a job to run this request that will not read from cache but will upon completion write to cache. This wall all callers are served in the much faster response time, but results are still routinely updated behind the scenes.

@jwadhams jwadhams merged commit 1cb4e8f into development May 20, 2025
6 checks passed
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.

3 participants