[zeromq-dev] Odd numbers with zeromq

Pieter Hintjens ph at imatix.com
Fri Sep 14 08:35:18 CEST 2012


On Fri, Sep 14, 2012 at 1:33 AM, Maninder Batth <whatpuzzlesme at gmail.com> wrote:

> With message size of 1KB, i am able to publish 5157783 messages per second.
> How is this possible ?

Presumably your calculations are wrong somewhere.

> 1. Clients which wait for ack to publish next message
> In this use case, client publishes next message ONLY after it gets a message

The cost of a round-trip is going to be around 300 microseconds on a
local loop, up to 1000x more across the Internet. Try 'ping' to see
what it gives. If you do a round-trip for each message your
performance is going to be very low.

-Pieter



More information about the zeromq-dev mailing list