[rabbitmq-discuss] 15000 msg/sec

Matthew Sackman matthew at rabbitmq.com
Fri Jul 15 14:35:24 BST 2011


On Fri, Jul 15, 2011 at 05:26:31PM +0400, Eugene Kirpichov wrote:
> Please show the source code of all participating components. It's
> impossible to say anything definite without it.

You already have the source - see MulticastMain in our Java client.

On my desktop here:

matthew at hazel:~/work/rabbit/rabbitmq-umbrella/rabbitmq-java-client$ sh ./build/dist/runjava.sh com/rabbitmq/examples/MulticastMain -a -r 23000 -z 30 -i 5
starting consumer #0
starting producer #0
recving rate: 22413 msg/s, min/avg/max latency: 173/94617/305179 microseconds
sending rate: 22992 msg/s
recving rate: 23115 msg/s, min/avg/max latency: 148/36310/123523 microseconds
sending rate: 22996 msg/s
recving rate: 22819 msg/s, min/avg/max latency: 171/48192/153662 microseconds
sending rate: 23000 msg/s
recving rate: 23182 msg/s, min/avg/max latency: 152/13728/45222 microseconds
sending rate: 22998 msg/s
recving rate: 22902 msg/s, min/avg/max latency: 178/23257/65176 microseconds
sending rate: 22996 msg/s
recving rate: 23040 msg/s, min/avg/max latency: 167/16047/56063 microseconds
recving rate avg: 22985 msg/s
sending rate avg: 22997 msg/s

And that's both 23kHz in and 23kHz out at the same time. The only caveat
there is that it's using noAck on the consumer.

And with acks back on, it's a little slower but still able to meet your
needs:

matthew at hazel:~/work/rabbit/rabbitmq-umbrella/rabbitmq-java-client$ sh ./build/dist/runjava.sh com/rabbitmq/examples/MulticastMain -r 17000 -z 30 -i 5
starting consumer #0
starting producer #0
recving rate: 16258 msg/s, min/avg/max latency: 340/171686/285537 microseconds
sending rate: 17000 msg/s
recving rate: 17396 msg/s, min/avg/max latency: 170/22980/139531 microseconds
sending rate: 17000 msg/s
recving rate: 16980 msg/s, min/avg/max latency: 169/3099/14077 microseconds
sending rate: 16999 msg/s
recving rate: 17026 msg/s, min/avg/max latency: 168/1734/20361 microseconds
sending rate: 17000 msg/s
recving rate: 17000 msg/s, min/avg/max latency: 174/1863/17528 microseconds
sending rate: 17000 msg/s
recving rate: 17001 msg/s, min/avg/max latency: 173/1704/12944 microseconds
recving rate avg: 16995 msg/s
sending rate avg: 16999 msg/s


Matthew


More information about the rabbitmq-discuss mailing list