Knowing the number of subscribers also lets a publisher take votes, e.g. to detect network failures, and other fun things. If you want to create a high-availability publisher pair that coordinate with each other, the number of active subscribers is key knowledge a publisher needs to decide its on a dead network link.
-Pieter On Jul 24, 2010 1:38 PM, "Oliver Smith" <[email protected]> wrote: On 7/24/2010 3:39 AM, Pieter Hintjens wrote: > Does that cloud have to be opaque by definition? For... I'm fairly new to 0MQ, so this is absolutely not a counter to Pieter's request: I'm curious why you would want to know the number of subscribers - I can only think of two reasons - Knowing when there are none so you can skip broadcasting un-attended data, - Debugging In debugging terms alone, it actually seems like being able to tell how many there are would be of fairly significant use. - Oliver _______________________________________________ zeromq-dev mailing list [email protected]...
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
