Skip to content

Fanout to multiple subscribers question #120

Answered by weyoss
quan612 asked this question in Q&A
Discussion options

You must be logged in to vote

@quan612 So in your case you either go with Topic Exchanges or FanOut Exchanges.

If you go with topics:

1\ Each app use its own queue for example app1 uses my-queue.app1, app2 uses my-queue.app2, and so on.
2\ Publish a message with the topic my-queue (message.setTopic('my-queue')).

If you go with fan-outs:

1\ Each app use its own queue for example app1 uses my-app1-queue, app2 uses my-app2-queue, and so on.
2\ Create a FanOut my-fanout
3\ Bind both my-app1-queue and my-app2-queue to my-fanout FanOut
4\ Publish a message with the my-fanout FanOut (message.setFanOut('my-fanout')).

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by weyoss
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #109 on April 15, 2025 08:55.