'Is having multiple producers for the same topic in Azure Service Bus problematic?
In my application, there are two independent sources that could produce the same message type. I know there are not going to be any duplicate messages from the two sources, and the consumers don't care which source the message came from. So it makes a lot of sense to have both of the producers insert messages into the same topic.
I was just wondering if there are any potential issues when having competing producers. I have been reading the documentation but didn't find any information on this.
Solution 1:[1]
From a technical point of view, there's no issue with having multiple publishers publishing to the same Service Bus topic. That's what topics are for.
From a logical point of view, there's some question around "competing publishers" as it in odds with the real world. You have competing consumers, that compete over the same messages. Publishers could be scaled out but publishing the same message (information) from more than a single instance feels off.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sean Feldman |
