B
B
bro-dev2019-05-04 04:32:02
RabbitMQ
bro-dev, 2019-05-04 04:32:02

In rabbitmq, is it possible to subscribe to a publication if there are few messages in the queue?

In rabbitmq, is it possible to subscribe to a publication if there are few messages in the queue?
Relatively speaking, the consume method is a subscription from the outgoing side, is there the same from the incoming ones, you just want some kind of single flow control point, and not write crutches yourself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Bomberow, 2019-05-04
@majstar_Zubr

If the rabbitmq user has rights on this virtual host where the queue is located, he can send messages there if the queue is not filled to the maximum, and that's all that concerns queues.
Given your real problem, you need to pay attention to the exchanges (a set of queues), and publish through them, then Rabbitmq itself will load balance messages between all the queues that are registered in a particular exchange.
(in the degenerate case, this could be a single queue, but rabbitmq came up with this because of the need to support clustering)
https://www.rabbitmq.com/tutorials/tutorial-three-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question