On 25 May 2012 10:00, Ambalu, Robert <[email protected]> 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 (ZMQ_SUBSCRIBE) . >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 string. 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. -- Steve-o
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
