Single Queue, Multiple Consumers

138 views
Skip to first unread message

Noor Us Sahar

unread,
Aug 6, 2021, 7:45:46 AM8/6/21
to rabbitmq-users
How can I entertain multiple users using single queue at the same time. Like if i send 3 messages and I am using 2 terminals as 2 receivers, so how is that possible that both consumers receive all 3 messages at the same time.

Martin Gäckler

unread,
Aug 6, 2021, 8:37:42 AM8/6/21
to rabbitm...@googlegroups.com
in that case you need for each consumer its own queue. You must bind them to the same routing key.

Sent from Fairphone

Noor Us Sahar <noorus...@gmail.com> schrieb am Fr., 6. Aug. 2021, 13:45:
How can I entertain multiple users using single queue at the same time. Like if i send 3 messages and I am using 2 terminals as 2 receivers, so how is that possible that both consumers receive all 3 messages at the same time.

--
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/ac29ec12-a77b-4e2d-a663-f6a72fa52aean%40googlegroups.com.

Ken N

unread,
Aug 6, 2021, 10:43:59 PM8/6/21
to rabbitm...@googlegroups.com
or use the fanout exchange.

On 2021/8/6 8:37 下午, Martin Gäckler wrote:
> in that case you need for each consumer its own queue. You must bind
> them to the same routing key.

--
Ken N
https://lrblogs.com/
Reply all
Reply to author
Forward
0 new messages