Several consumer receives the same message

39 views
Skip to first unread message

Guillermo Arribas

unread,
Feb 20, 2023, 2:25:31 AM2/20/23
to rabbitmq-users
Hello everybody!

I gonna try to explain my situation.
When several consumers connect to the same queue and that queue receives an msg, the order to deliver that msg follow the round-robin distribution.
I would like to find a solution where all the consumer receive the same msg from the same queue, like a stream but with a direct queue or with topic.

I don't know if I have explained.Thanks!

Gabriele Santomaggio

unread,
Feb 20, 2023, 11:21:37 AM2/20/23
to rabbitmq-users
You need one queue per consumer.
So if you have 1000 consumers, you have to bind 1000 queues to the exchange and then one consumer for queue.

In this case, you should use the stream btw, see:

-
Gabriele 

Terry Rinck

unread,
Feb 20, 2023, 7:01:34 PM2/20/23
to rabbitm...@googlegroups.com
If you're unable to use stream queues take a look at the fanout exchange.
https://www.rabbitmq.com/tutorials/amqp-concepts.html#exchange-fanout

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/a0306780-bc28-4f89-a049-cc5dd9450f03n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages