Skip to content

Cache exceptions (with a distinct timeout) #20

@dannyroberts

Description

@dannyroberts

For a caching library to do its part to mitigate distributed outages, it's a best practice to cache exception responses with a distinct (usually shorter) expiry. Without this, an outage in a backing service can cause errors in cached functions, which result in an increased number of calls going to the backing service that is struggling, since calls that would normally leave a cached result are now exiting without writing to the cache. Caching exceptions will keep load off of the service the backing service that is struggling.

Inspired by recommendations in https://aws.amazon.com/builders-library/caching-challenges-and-strategies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions