-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Enable cache directives on GraphQL schema #3180
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels