Distributed cache setup for kong(DB-Less) instance in Kubernetes

Hi,
Can anyone please help how can we setup distributed cache for kong(DB-Less) instances in kubernetes.

What is the purpose of this cache? I’m not sure what you mean by cache for Kong here. Can you elaborate?

Hi, Thanks for the response
I have created a custom kong plugin which calls one of our upstream service and the response is locally cached using lrucache library. My usecase is to create a distributed cache in kubernetes for that custom plugin. So that all the plugin cache in each kong nodes are in sync to avoid further upstream calls.

mlcache is probably a good solution for your problem, along-with using Redis for sharing the cache with all Kong nodes. For the Redis part, I’d recommend that you take a look at the proxy-cache plugin that ships with Kong.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ