[zeromq-dev] [PATCH] ZMQ_PEER_EXISTS option

Pieter Hintjens ph at imatix.com
Thu Jun 9 06:55:04 CEST 2011

On Thu, Jun 9, 2011 at 6:15 AM, Artur Brugeman <brugeman.artur at gmail.com> wrote:

> My pattern doen't match Freelance Pattern. Freelance is about servers, which
> are stable (although there are several ones for redundancy) and clients.
> My pattern is about equal unstable peers. If you are really interested in
> what I'm trying to implement, here are two links...

Actually Freelance connects a bunch of unstable workers with a bunch
of unstable clients. So there are elements there you should be able to
reuse, especially in the client side.

Are you using a registration broker? That'd make life easier.

In any case, using the same socket for bind/connect and trying to
ensure only a single connection between peers depending on who gets
there first seems fragile. I'd look at making each peer a 'client' and
a 'server' consistently, with one outbound and one inbound socket. You
can generate predictable identities using the endpoint as Freelance


More information about the zeromq-dev mailing list