A
A
arturgspb2013-04-13 22:56:27
RabbitMQ
arturgspb, 2013-04-13 22:56:27

Is it possible to prioritize which consumer (or group) a message will leave from RabbitMQ?

If I am initially wrong in understanding the use of message queues, please correct me.
I would like to understand the problem that I described in the title.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
akazakou, 2014-02-07
@arturgspb

There are several options for solving the problem:
1. Several exchange points are created for different message types and subscribe queues for each consumer to these exchange points.
2. One exchange point is created and all queues subscribe to this exchange point, specifying the routing_key. Queues subscribe to certain routing_keys (there may be several)
The second option is more preferable in my opinion.

S
subvillion, 2013-04-15
@subvillion

No, you can’t, there is no such concept in RabbitMQ.
Implemented differently.
The optimal implementation, in my opinion, is 2 queues, low and hi + consumer who first takes the task from hi, and only if it is empty from low.

T
tarasbogach, 2013-11-18
@tarasbogach

http://www.rabbitmq.com/amqp-0-9-1-quickref.html
basic.qos(long prefetch-size, short prefetch-count, bit global) ➔ qos-ok
Specify quality of service.
So you can change the probability for the worker.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question