Apollo Router
OverviewAbout GraphOS RouterWhat's New in Router v1GraphOS Router FeaturesRouter ConfigurationRouter Request Lifecycle
Upgrade & Migrate
Self-Hosted Deployment
Query Planning
Client Features
Security
Observability
Performance and Scaling
Router Customization
GraphOS Integration
Guides

You are viewing documentation for GraphOS Router v1.x

Switch to the latest version.

Caching

Accelerate query retrieval with GraphOS caching.


By default, GraphOS Router stores the following data in its in-memory cache to improve performance:

  • Generated query plans

  • Automatic persisted queries (APQ)

  • Introspection responses

You can configure certain caching behaviors for generated query plans and APQ (but not introspection responses). For details, see In-memory caching in the Apollo Router.

If you have a GraphOS Enterprise plan, you can configure a Redis-backed distributed cache that enables multiple router instances to share cached values. For details, see Distributed caching in GraphOS Router.

You can configure a Redis-backed entity cache that enables a client query to retrieve cached entity data split between subgraph responses. For details, see subgraph entity caching in GraphOS Router.