[rabbitmq-discuss] Per queue message limit

Emile Joubert emile at rabbitmq.com
Fri Aug 17 14:44:27 BST 2012


Hi,

On 17/08/12 14:19, Prashanth wrote:
> Thank you for the response, you mean producers can observer
> the length of the queue using one of the rabbitmqctl commands. Is there
> anything other way too.

That can work, but it is also possible to obtain the queue length using
AMQP, which is probably more convenient for your publishers. Declare the
queue passively and extract the message-count field:

http://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.declare-ok.message-count

There are other ways of determining the queue length (e.g. using methods
bearing a message-count parameter), but they disturb the queue contents.



-Emile



More information about the rabbitmq-discuss mailing list