Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even distribution of messages at consumer level? #178

Open
nazmul-prince opened this issue Dec 15, 2022 · 1 comment
Open

Even distribution of messages at consumer level? #178

nazmul-prince opened this issue Dec 15, 2022 · 1 comment
Assignees

Comments

@nazmul-prince
Copy link

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?

@sonus21
Copy link
Owner

sonus21 commented Dec 15, 2022

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 sonus21 changed the title Suggest an idea for this project Even distribution of messages at consumer level? Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants