Kira, Please read chapters 3, 4 and 5 in the guide (zguide.zeromq.org). I recommend focusing on the majordomo pattern. It could be adapted for this purpose.
cr On Dec 24, 2012, at 12:48 AM, Kira <[email protected]> wrote: > Suppose a command is sent to several receivers, some of them will perform > some tasks and then send the result back the sender. > So, the connection between sender and each receiver is required. However, I > don't want to create too many connection and the number of receiver may be > increased. Is is possible to use one connection to publish the command and > serve the purpose as above? > > Kira > > From: Charles Remes <[email protected]> > To: Kira <[email protected]>; ZeroMQ development list > <[email protected]> > Sent: Friday, December 21, 2012 5:48 AM > Subject: Re: [zeromq-dev] Request-Reply Pattern > > On Dec 20, 2012, at 12:39 AM, Kira <[email protected]> wrote: > >> Hi, >> >> I have an issue about using Request-Reply Pattern. Suppose there one REQ >> socket and multiple REP sockets, >> since one request can be sent to one REP sockets. If the request need to be >> broadcast, DEALER/ROUTER is used. >> As I don't want to create a DEALER/ROUTER socket, is it possible to use >> PUB/SUB/REQ/REP socket to cater for this purpose? > > Sorry, it is not true that DEALER/ROUTER are used to broadcast requests. > > Please describe your purpose so that we can propose the proper solution. > Also, please read the zguide.zeromq.org and focus on chapters 2, 3, 4 and 5. > Those chapters describe the patterns and how to use them for both simple and > advanced techniques. > > cr > > > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
