Skip to content

Enable cache directives on GraphQL schema #3180

@Voxelot

Description

@Voxelot

Much of the data on the graphql api is highly cachable as it's immutable once written. There is an Apollo graphql standard for this that many CDNs support: https://www.apollographql.com/docs/apollo-server/performance/caching

Our async-graphql framework also supports adding these annotations: https://async-graphql.github.io/async-graphql/en/cache_control.html

By decorating our GraphQL API with these caching annotations, we will be able to drastically speed up the performance of historical queries on the GraphQL API at the CDN level.

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