[rabbitmq-discuss] RabbitMQ throughput

Matthias Radestock matthias at lshift.net
Fri Oct 2 08:27:08 BST 2009


Suhail,

Suhail Doshi wrote:
> 200 items per second isn't a lot? 

I misread your original post. I thought you said there were 200 items in 
the queue that the 50 consumers are then draining in 30ms, whereas 
actually you were saying that messages get published to the queue at a 
rate of 200Hz (which still isn't a lot) and you have 50 consumers which 
take <30ms to process each item. Right?

> My expectation is that rabbit should push a new item to my consumer once 
> that consumer has ACKed a message in less than 100ms

Are you using qos? Only with qos will rabbit wait for the acks before 
sending more messages; otherwise it will just keep sending them.

Also, are you using tx mode on either the publishing or consuming side? 
Depending on the size of the transactions that can slow things down 
significantly since a tx commit is forced to wait for a disk fsync.

Also, how long does the queue get?

As others have said, if you have things set up correctly you should be 
able to see a throughput of thousands of Hz.


Regards,

Matthias.




More information about the rabbitmq-discuss mailing list