In-memory cache invalidation on multiple instances of same API (multiple pods on Azure AKS)
I have a situation where API(ASP.NET Core) is deployed on Azure AKS and there are multiple pods of the same API running (horizontal scaling). Each instance has its local in-memory cache. I need to trigger cache invalidation on all instances(pods) using some form of message broadcast. We are using Azure Service Bus for interservice communication, but I don’t know how to use it in this scenario, since API has one topic subscription, and all instances that use same subscription are acting like a competing consumers, there is no message broadcast to all instances that share one subscription. Is there any suggested way to implement this scenario? Thanks in advance.