Entity Caching

Grafbase Gateway uses entity caching to cache requests to subgraphs. Enable entity caching globally in the global entity cache config section. Every subgraph can define its own cache policies - learn more in the per-subgraph entity cache config section. The system protects user data by scoping cached data, and uses all headers to compute the scope.

Entity caching stores data in an in-memory cache by default. Configure Redis as your caching backend when you need to run and share cache across multiple gateways. Learn more about configuring Redis for entity cache.

TLS with Redis increases response times, and each request requires at least one call to the Redis server. Place the Redis server as close as possible to the gateway instances and avoid using TLS for the counters.