[zeromq-dev] transmission rate of broker is less than 5000req/s

Pieter Hintjens ph at imatix.com
Mon Aug 20 18:43:36 CEST 2012


Elwin,

> hi all:
> when i run the example of "
> A Request-Reply Broker
> "(rrclient.c, rrserver.c and rrbroker.c in git)
> and remove all printf() and sleep(), i found that rate of transmission less
> than 5000req/s, i think it's abnormal.

It's pretty normal and the text explains this. You're doing round-trip
request-replies, which adds considerable latency. You'll only get
really good performance from 0MQ (or any messaging) when you do
asynchronous streams of messages.

-Pieter



More information about the zeromq-dev mailing list