[zeromq-dev] PUB-SUB scalability

Pieter Hintjens ph at imatix.com
Mon Aug 16 19:16:28 CEST 2010


On Mon, Aug 16, 2010 at 4:44 PM, Steven Clark <steven.p.clark at gmail.com> wrote:

> I'm interested in how well PUB-SUB scales via TCP.

The maths is fairly simple.  The network traffic will be sum P(S x M x Z) where:

P is the publisher socket
S is the number of subscribers
M is the number of messages per second
Z is the size of messages on average

Summed up over all publisher sockets.

> Any guesses as to how high N could go before things go haywire? Is the
> network bandwidth the limiting factor?

Yes, that's all.

> Does the situation improve if I provide a separate PUB socket for each
> topic?

Nope.  Don't create multiple PUB sockets for this.

-
Pieter Hintjens
iMatix - www.imatix.com


More information about the zeromq-dev mailing list