-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fanout Exchange #9
Comments
Hey, If you have multiple consumers consuming from the same queue, only one of them will get the message. You will need to use different queues for each consumer, as an example in the pika example this is done using channel.queue_declare(exclusive=True), but you could simple use different names for the various consumers; e.g. queue1 and queue2. In amqpstorm you would implement an exclusive queue like this.
I hope this helps. =] |
Hey, Ah yeah, got it! Thank you very much for your answer, will try that now! Best |
No worries. Let me know if you run in to any issues! |
Works very well thank you! |
Hello,
I'am trying to set up a
fanout
exchange to deliver a message to multiple consumers. I didn't find any example for that. I tried to write something similar to thepika
example here https://www.rabbitmq.com/tutorials/tutorial-three-python.html. The code doesn't raise any error, but only the first consumer receives message. Here the relevant code:Publisher:
Consumer:
Is the correct code to set up a
fanout
exchange ? I tried withno_ack=False
andno_ack=True
, and different variants of the code above, but I always get the same thing: no error, but only the first consumer receives the message.Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: