[zeromq-dev] "Broadcast" messages for PUSH-PULL sockets?

Timothy Shead tshead at sandia.gov
Mon Mar 14 16:10:29 CET 2011


When streaming a fixed quantity of data through a pipeline via PUSH-PULL 
sockets, I find myself wanting to signal all of the downstream workers 
when the input data has been exhausted.  To do that, I have to send my 
"finished" message multiple times, which means that each upstream PUSHer 
must be explicitly configured to know how many downstream PULLers there 
will be, which spreads-around knowledge of the pipeline topology and 
introduces lots of complexity, e.g. waiting for every PULLer to connect, 
etc.  Is there an easier way to "broadcast" a message to every PULL 
socket connected to a PUSH?  Using a separate PUB-SUB connection seems 
equally problematic - I'm assuming that there's no guarantee that a 
published "finished" message would arrive after the last data message in 
the PUSH-PULL connection.

Thanks in advance,
Tim

-- 
Timothy M. Shead
Sandia National Laboratories
1461, Scalable Analysis and Visualization




More information about the zeromq-dev mailing list