[zeromq-dev] Pub - Sub pattern and IP v6

Emmanuel TAUREL taurel at esrf.fr
Wed Jun 29 14:46:59 CEST 2011


Hello,

First a question about IP v6. Is it supported by ZMQ?

Then a question related to Pub-Sub system design. I have entities 
publishing several kind of data. I have subscribers interested in only 
one kind
of published data. There are two kinds of design:

1 - Every data kind will be published by the entity using its own publisher
2 - Only one publisher is used by the entity but with a message envelop 
used by the subscriber in the ZMQ_SUBSCRIBE socket option.

Design number 1 could lead to a large number of publishers because on a 
dedicated host, I will have thousand of entities publishing data and the 
number of publisher will be the number of entities multiplies by  the 
number of data kind.
Design number 2 will generate useless network traffic and CPU activities 
for subscribers to receive and filter out the data they are not 
interested in (filtering in one the subscriber side).

Which design is the best one? Is there other way to build this kind of 
system?

Thank's for your answer

Emmanuel Taurel




More information about the zeromq-dev mailing list