Multiple consumers on the same queue

36 views
Skip to first unread message

Dharma Raj

unread,
Dec 5, 2017, 10:02:50 AM12/5/17
to rabbitmq-users
I want to make the thread manage to process the rabbit queue. So 5 to 10 threads needs to read the data from the queue and process it. 

How can achieve this. When I write normal program with help for rabbit mq examples, one thread is waiting for to complete until another thread releasing the channel.


Michael Klishin

unread,
Dec 8, 2017, 1:01:56 PM12/8/17
to rabbitm...@googlegroups.com
You can add multiple consumers on a queue. That's a well known pattern called competing consumers.

Take a look at tutorial 2 for starters: http://www.rabbitmq.com/getstarted.html.
How exactly that's done depends on the client library used.

On Tue, Dec 5, 2017 at 7:02 AM, Dharma Raj <aimdha...@gmail.com> wrote:
I want to make the thread manage to process the rabbit queue. So 5 to 10 threads needs to read the data from the queue and process it. 

How can achieve this. When I write normal program with help for rabbit mq examples, one thread is waiting for to complete until another thread releasing the channel.


--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages