I have a Microservice (Web API), that publish messages to a Topic (Topic A).
Now I have another Microservice (Web API) that should subscribe to this topic and act upon the messages.
My question is simply: How should I do this since my Microservice that should subscribe to the Topic is a WebApi? In my web api, I want in somehow instantly know when a new message is available in the Topic. Should I poll the service bus via an endpoint?
I'm uncertain about the best practices about this.
All examples that I have seen using console applications to subscribe. But that's not my case since I have an web api.