[zeromq-dev] Pub/Sub over PGM with many topics

Steven McCoy steven.mccoy at miru.hk
Sun May 27 23:44:02 CEST 2012

On 25 May 2012 10:00, Ambalu, Robert <robert.ambalu at jpmorgan.com> wrote:

> - if I do need to create a socket per topic, and I subscribe to lets say
> 1000 topics, does that mean I need 1000 sockets, and then for every single
> poll() iterate through all 1000 sockets? That doesn’t seem right /
> inefficient, so im hoping I’m thinking about this incorrectly
You can go for one socket with 1,000 topic subscriptions via zmq_setsockopt

>From a performance and convenience viewpoint it is unfortunate that a
closure cannot be provided so one does not have to perform an additional
map search in addition to the internal ZeroMQ search.  The pattern would
follow epoll then.

The socket paradigm is a bit inconvenient to fit all these requirements
into.  This would require ZMQ_SUBSCRIBE take a struct value and not just a

I don't suppose you're at 383 Madison Ave in NY and working with Athena?
 Thomson Reuters UPA would work well as a transport in ZeroMQ.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120527/ac17a2e3/attachment.htm>

More information about the zeromq-dev mailing list