# Caching Strategies in a Federated GraphQL Architecture

DevFeed: [Caching Strategies in a Federated GraphQL Architecture](<https://devfeed.tech/articles/caching-strategies-in-a-federated-graphql-architecture-23250.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/caching-strategies-in-a-federated-graphql-architecture>)

Author: Kyle Schrade

Published: 2020-11-09T13:01:16Z

Content type: article

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Caching](<https://devfeed.tech/topics/caching.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [API](<https://devfeed.tech/topics/api.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [gateway](<https://devfeed.tech/topics/gateway.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cache](<https://devfeed.tech/tags/cache.md>), [caching](<https://devfeed.tech/tags/caching.md>), [caching-strategies](<https://devfeed.tech/tags/caching-strategies.md>), [code](<https://devfeed.tech/tags/code.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [programming](<https://devfeed.tech/tags/programming.md>), [resolvers](<https://devfeed.tech/tags/resolvers.md>)

## AI overview

This article explains caching strategies for a federated GraphQL architecture, progressing from no caching to local in-memory caching and memoization, with distributed caching also identified as a possible approach. It notes that these are only some of the available strategies and links to code examples.

## Source excerpt

Caching, along with naming variables and off-by-one errors, is one of the hardest problems in programming. In this post, we'll explore caching in a federated GraphQL context from local caching and memoization to distributed caching. The approaches described here are only one of many ways to cache in a federated GraphQL architecture. You can find the code describing each strategy here.