首页 > 解决方案 > how to call flush in-memory api on all kubernetes pods if user call it via loadbalancer url

问题描述

In netcore webapi application, we have used EasyCaching provider for in-memory implementation and used flushAsync feature to clear cache. We deployed this appication on kubernetes and when user calls this flush api via loadbalancer url, in-memory cache for all pods must gets cleared.

Currently, I can hit only one pod and do not have control over which pod would get hit. I want to clear cache in all the pods in my Kubernetes cluster on api calling.

If there is an alternative approach for this problem, or a way to configure kubernetes to hit all end-points for this request, sharing here would be a great help.

标签: kubernetes.net-corein-memory

解决方案


推荐阅读