[rabbitmq-discuss] Polling Average message size in a queue

Arun Rao arunrao.seattle at gmail.com
Wed Mar 5 19:45:03 GMT 2014


Thanks Matthias! That is a brilliant idea and I can setup queue length
limit on the second queue as per the requirement.

Thanks!
-arun.


On Wed, Mar 5, 2014 at 11:33 AM, Matthias Radestock
<matthias at rabbitmq.com>wrote:

> On 05/03/14 19:22, Arun Rao wrote:
>
>> I am interested in monitoring the average size of messages flowing
>> through a queue. I could use the API to get messages with requeue set to
>> true, so that I have the output of a message to determine size.
>> Unfortunately, this method is not effective when consumers are consuming
>> faster than producers.
>>
>> The other option is to write a java program with higher consumer
>> priority which connects intermittently to the queue and requeues the
>> messages after I determine the size.
>>
>> Any other ideas/suggestions that I missed?
>>
>
> Set up a second queue with exactly the same bindings as the first, and let
> your average-size-calculating program consume & ack messages in that.
>
> Matthias.
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140305/62b30089/attachment.html>


More information about the rabbitmq-discuss mailing list