[rabbitmq-discuss] RabbitMQ throughput

Matthias Radestock matthias at lshift.net
Thu Oct 1 21:32:43 BST 2009


Suhail Doshi wrote:
> Does anyone know what rabbitmq throughput is from items sitting in the 
> queue to sending them to a consumer?
> Lets say we're doing 200 items in the queue a second with 50 consumers 
> waiting to process the item, usually they do in < 30ms.

So that's ~7kHz, which doesn't look unreasonable, but there are many 
factors at play here which we'd need to know about in order to make a 
better assessment:

- are these messages persistent or transient?
- how big are the messages?
- do the consumer consume in no-ack mode, or ack mode?
- are the consumers sharing a connection (or even channel) or do they 
all have their separate connection/channel?
- where are the consumers in the network topology in relation to the server?
- what's the hardware spec of the server machine?
- what version of Erlang are you running?
- what AMQP client are you using?

Also, ...

> Watching our consumer logs, it feels like they don't get items fast
> enough from rabbitmq, is that possible or is it me?

Can you instrument the consumers to measure how long they are blocked 
waiting for messages from RabbitMQ?

Also, with 200 messages shared across 50 consumers each consumer will 
only get four items, which is a rather small figure to do any meaningful 
statistical analysis with.



More information about the rabbitmq-discuss mailing list