I have a Microservice as Notification which is a (Subscriber) Service. And I have 2 other Publisher services as
So, I want to send Notifications from Notification Service when :
I'm using Azure Service bus for Service to Service Communication in ASP NET Core WEB API. So, Shall I use 2 Topics and 2 Subscriptions or 1 Topic and 2 Subscriptions.
In Azure Service Bus
How you design your topology depends on how you see it growing in the future. With this number of entities, two topics could be unnecessary and a single topic with 2 subscriptions would suffice. This still works well when the number of events grows in the system. And the beneficial part is that the only point of coupling becomes a single topic name rather than a topic name per event type.