[zeromq-dev] Reduce latency on Pub-Sub Broker

Pieter Hintjens ph at imatix.com
Thu May 31 10:54:09 CEST 2012


The broker looks fine. Your bottleneck is probably memory allocation
in the C# binding.


On Thu, May 31, 2012 at 7:40 AM, Robert Evans <zwergzebra at googlemail.com> wrote:
> Hi Pieter,
> I tried running the Pub/Sub and the Broker on 2 machines, but this
> unfortunately didn't help. When I tried the Pub and Sub without a Broker on
> 2 machines, everything went fine - about 0,2 ms latency. But with the broker
> inbetween it goes up to ~60ms, when I set a HWM of 10000 on the Pub and Sub
> socket of the broker and on the publisher client. And when I sent messages
> of 100-1000 byte size, the performance goes down to about 40 000 msg/s
> (don't know if this is a normal behaviour with the HWM).
> I have uploaded my broker source code: http://pastebin.com/u03sEanp . Maybe
> there is something wrong with it. I hope there is someone here who uses the
> clrzmq binding and could help me. I will try porting the broker to C hoping
> it's just a problem with the C# binding.
> Thanks!
> Regards,
> Robert
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list