One common approach is to use a shared redis or memcached (or any other similar type of service). You probably want to aim for network+memory instead of network+disk for that kind of thing (depending on your needs ofc).
k
kind-nightfall-56861
08/22/2022, 8:22 AM
I would prefer a memory approach, ya.. It's a non-issue if the caching suddenly gets whiped, but they need to be equal over all running pods.
q
quick-dentist-45681
08/22/2022, 8:25 AM
In that case, I would look at deploying a redis instance in the cluster and use that. You could optionally go for a HA setup using Sentinel, but that's often more complexity than it's worth for a simple cache.
✅ 1
k
kind-nightfall-56861
08/22/2022, 8:27 AM
Aight, I wasn't yet aware of https://redis.io/, so thanks for the feedback 😄