[rabbitmq-discuss] Many consumers on 1 queue. What algorithm RabbitMQ use to send messages?

Haster haster2004 at yandex.ru
Mon Sep 23 11:00:05 BST 2013


Hi there!

For example, I have 3 consumers on 1 queue.
If I set prefetch_count = 1, then server will use round-robin algorithm:
1st message to consumer1
2nd message to consumer2
3rd message to consumer3
4th message to consumer1 and so on.

But how does strategy changes when prefetch_count !=1? (for example 10)
Will server push 10 messages to consumer1, next 10 to 2 and so on?

And if prefetch_count = 1 but 1st consumer has already processed his
message? Will server send new message again to consumer1? Or in any cases
next message will be sent to consumer2?



--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/Many-consumers-on-1-queue-What-algorithm-RabbitMQ-use-to-send-messages-tp29831.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


More information about the rabbitmq-discuss mailing list