-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Service Bus - How can I publish messages to multiple topics #1064
Comments
An event is commonly published to a single topic and doesn’t need to be published to two. When a need is to fan out that event, , you could set up a subscription on the topic used group name. Could you elaborate on what you are trying to achieve and how publishing to multiple topics would help your case? |
No response, closed! |
I have a use case where some business processes publish events on topic A and others on topic B (so not in the same transaction). Is that supported? |
@jonekdahl |
@yang-xiaodong Like the OP, I would like to know if it is possible to publish to multiple topics.
For a single event, I would agree. However, my use case is that one type of event needs to be published to topic A, while another type of event needs be published to topic B. So I'm not looking for a way to fan out a single event to multiple subscribers, but some way to tell CAP how to route message in each case. AFAICT, this would require setting up multiple instances of CAP with a separate database schema for each instance, which seems doable but not very convenient. |
@jonekdahl The message name is the Topic, So you can publish twice.
But I don't think you mean that, If you mean send the message to a different database or broker in one service, we currently do not provide direct support for publish one message to different database or broker, but there is a way to achieve it, you can check this comment to get details |
@yang-xiaodong The I think #1074 is asking for the same thing and it looks like it has a draft PR that introduces a new message header to allow overriding the topic path. |
Hi
I am using Azure Service Bus as Transport.
As far I understand, can publish to only single topic from one application.
Publishing to multiple topics is possible with CAP ?
The text was updated successfully, but these errors were encountered: