apollographql / apollo-client

:rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
https://apollographql.com/client
MIT License
19.34k stars 2.66k forks source link

When use the Apollo Client server side rendering, How to share the cache in cluster server (k8s)? ( did we have file cache? or db cache? ) #11816

Closed dande-sun closed 5 months ago

dande-sun commented 5 months ago

Our project use Astro + Apollo + graphQL to render the client page, use the InMamoryCache to cache data, and we have a lot of child render server in cluster servers, but the cache is stored in mamory, so each child render server has a cache, now we need re-fetch each render server to refresh the data, that is a big problem, so my question is how to share the cache in all render servers? if can share the cache in all render servers, we just need re-fetch once, all data will be changed.

bignimbus commented 5 months ago

Engaging here: https://community.apollographql.com/t/when-use-the-apollo-client-server-side-rendering-how-to-share-the-cache-in-cluster-server-k8s/7439/5

github-actions[bot] commented 5 months ago

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. For general questions, we recommend using StackOverflow or our discord server.