[rabbitmq-discuss] Low impact statistics gathering for queues
Simon MacMullen
simon at rabbitmq.com
Mon Mar 11 10:51:49 GMT 2013
On 11/03/13 10:43, Emile Joubert wrote:
> The management plugin can also be used to obtain this information using
> the HTTP API. For details see http://www.rabbitmq.com/management.html
> and the HTTP API documentation linked from there.
This is perhaps the key point. Whereas rabbitmqctl list_queues will go
and synchronously communicate with each queue in the list, the
management API maintains its own database of queue information based on
events that queues emit, so querying the management API is cheaper.
There are still costs associated; generating a large JSON document is
surprisingly expensive, so limiting the number of columns you request
when listing all queues can help quite a bit.
Furthermore the management API lets you query details for individual queues.
Cheers, Simon
--
Simon MacMullen
RabbitMQ, VMware
More information about the rabbitmq-discuss
mailing list