Many consumers on 1 queue. What algorithm RabbitMQ use to send messages?
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?