[zeromq-dev] Request-Reply Pattern

Charles Remes lists at chuckremes.com
Mon Dec 24 15:22:51 CET 2012


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 <dophinehk at yahoo.com.hk> 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 <lists at chuckremes.com>
> To: Kira <dophinehk at yahoo.com.hk>; ZeroMQ development list <zeromq-dev at lists.zeromq.org> 
> Sent: Friday, December 21, 2012 5:48 AM
> Subject: Re: [zeromq-dev] Request-Reply Pattern
> 
> On Dec 20, 2012, at 12:39 AM, Kira <dophinehk at yahoo.com.hk> 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
> 
> 
> 
> 

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


More information about the zeromq-dev mailing list