I have a NodeJS app deployed as docker container and I am using Kubernetes for orchestration. The load balancing is done by Kubernetes by default.
I want to implement caching for the app.
My Question is: Is it possible to configure the Kubernetes load balancer Proxy to handle the caching also ?
PS: If not then please suggest what is the Best Practice to handle caching in Kubernetes-Docker environment.
Thanks
Proxy is not used for caching web pages, a cache server (Redis\Memcached) is used for caching web content. Proxy's job is to re-route requests and LoadBalancer has algorithms that it follows for traffic routing i.e. RoundRobin etc.
For this, you have to add a cache server in your application stack in the form of deployment with persistence storage (depending upon your needs).