rqueue icon indicating copy to clipboard operation
rqueue copied to clipboard

Even distribution of messages at consumer level?

Open nazmul-prince opened this issue 2 years ago • 1 comments

Lets say we have 4 producer (of same instance) who are en-queuing messages to a queue. There are 4 consumer (of same instance) with concurrency limit set to 20-25 in each consumer @RqueueListener settings. Now is it guaranteed that all consumers will get messages evenly? Or is there any way to achieve such goal so that all consumers get messages evenly from the queue like round-robin process?

nazmul-prince avatar Dec 15 '22 11:12 nazmul-prince

I should not claim, it will distribute the load equally at 100% but IMO it should be equally distributed with a small delta between each consumer. You can verify this by doing a counter at the hour level to see what's the different or at what percentage of traffic is not balanced.

sonus21 avatar Dec 15 '22 14:12 sonus21