[zeromq-dev] router-to-router pattern: how to ensure peer is ready

Kah-Chan Low kahchanlow at yahoo.com
Thu Oct 11 12:45:26 CEST 2012


Hi Pieter,

Just to make sure I get it right, do you mean that each node should have two sockets: 1 router(server) and 1 dealer(client)?


Thanks!
KC


________________________________
 From: Pieter Hintjens <ph at imatix.com>
To: Kah-Chan Low <kahchanlow at yahoo.com>; ZeroMQ development list <zeromq-dev at lists.zeromq.org> 
Sent: Thursday, October 11, 2012 5:03 AM
Subject: Re: [zeromq-dev] router-to-router pattern: how to ensure peer is ready
 
On Thu, Oct 11, 2012 at 1:12 AM, Kah-Chan Low <kahchanlow at yahoo.com> wrote:

> I am a newbie to ZMQ and in my project I need to use a router-to-router
> (instead of router-to-dealer) pattern.

Right there, you're doing it wrong.

Don't try doing router-router, it is a non starter. Instead do
dealer-router where dealer is "client" and router is "server" and then
double up this so each node plays client and server.

-Pieter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121011/519d61d0/attachment.htm>


More information about the zeromq-dev mailing list