[rabbitmq-discuss] Message distribution policy
simon at rabbitmq.com
Tue Dec 3 11:31:20 GMT 2013
These are not OS priorities - the priority is set by an argument to the
basic.consume method. Multiple consumers within the same OS process can
have different priorities.
On 03/12/13 11:27, Luis Rascão wrote:
> If i understood correctly multiple consumers with the same high priority
> will receive the messages in round-robin.
> This is easier if the processes were different binaries, they are in
> fact the same binary, to use priorities i would have to attribute higher
> priorities as i launch the multiple instances of the binary, is there
> some other way?
> On Tue, Dec 3, 2013 at 11:23 AM, Simon MacMullen <simon at rabbitmq.com
> <mailto:simon at rabbitmq.com>> wrote:
> Is this what you are looking for?
> Cheers, Simon
> On 03/12/13 11:19, Luis Rascão wrote:
> Hi all,
> Supose you have 3 processes consuming messages from a queue, i
> guess by
> default the messages will be distributed to the consumers in a
> round-robin fashion (p1, p2, p3, p1, etc). Is there a way to
> change this
> distribution policy so that always the first free process
> handles the
> message? For example if p1 is always available then it would
> handle all
> the queued messages.
> thanks in advance
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.__rabbitmq.com
> <mailto:rabbitmq-discuss at lists.rabbitmq.com>
> Simon MacMullen
> RabbitMQ, Pivotal
More information about the rabbitmq-discuss