Skip to content

Support serving stale content, while the cache entry is being refreshed #4

Description

@aaubry

When a cache entry expires, any subsequent access to it is considered a miss, causing the value to be fetched from the next cache level, or even recomputed. While this is happening, the caller has to wait for the fresh value. If the cache entry is accessed frequently, this means that accesses happening just after an entry has expired will be penalized.

In order to avoid that, we could keep serving the expired content for a short period of time while the content is refreshed in the background. This would prevent the callers from being blocked in many cases.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions