[rabbitmq-discuss] Messages bigger than 150kb
michael.s.klishin at gmail.com
Thu Oct 4 09:50:00 BST 2012
2012/10/4 Thomas Spycher <thomas.spycher at tech.swisssign.com>
> timeStart = time.time()
> self.rpcchannel.basic_publish(exchange='', routing_key='secureObjects',
> properties=pika.BasicProperties(reply_to=self.rpcqueue ,
> print time.time() - timeStart
This does not measure actual end-to-end throughput, only how fast Pika can
push things down the socket.
In that case, of course more data will take more time. In fact, Pika may
even delay sending the data
(I am not familiar with its internals but it is event loop-based AFAIR).
So what you are seeing is most likely Pika's internal buffer being
completely filled once you go above 150K,
in which case it has to do extra work, unlike with tiny messages. The same
can be true for buffers in layers below (OS does buffering for network I/O,
drivers may do that, etc).
When benchmarking a messaging system throughput, you need to do it
end-to-end, with [at least] 2 machines, a realistic
network link between them and understanding about how exactly your client
TCP settings like Nagle's algorithm  and phenomenons like TCP incast 
can make a noticeable difference in some cases.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss