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

Round-robin through a list of keys #25

Open
GlenRSmith opened this issue Sep 23, 2015 · 1 comment
Open

Round-robin through a list of keys #25

GlenRSmith opened this issue Sep 23, 2015 · 1 comment

Comments

@GlenRSmith
Copy link

I'd like to see the (routing) key property be allowed to be a list, and have the messages sent round-robin with the values in the list.

I propose this to provide a fairly simple solution to a fairly common problem: a RabbitMQ queue represents a single Erlang process, which is a single thread, only serviced by a single processor core.

With this solution in place, the logstash instance with a RabbitMQ output could have a list of routing keys from e.g. "logstash-1" through "logstash-N" feeding an exchange deployed on a box with N cores, and allow full use of the processor power of the server.

@smetj
Copy link

smetj commented Mar 7, 2016

@GlenRSmith The idea is good but you should use x-consistent-hash and x-modulus-hash exchanges instead which is already referenced in #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants