[nanomsg] Re: ZMQ_ROUTER like functionality

  • From: Paul Colomiets <paul@xxxxxxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Thu, 18 Sep 2014 01:05:24 +0300

Hi David,

On Thu, Sep 18, 2014 at 12:28 AM, David Robillard <d@xxxxxxxxxxxx> wrote:
> I am good with C.  Since the architecture of nanomsg seems well suited
> to extension I was considering this as an option.
>
> I'm not sure how the sender should/would best indicate the desired
> destination.  There is no suitable ancillary option, though working with
> that is pretty cryptic anyway.

Well, here is what I proposed a while ago:

//www.freelists.org/post/nanomsg/Trying-to-implement-directory-pattern

The basic idea is that worker subscribe on some subset of topics,
similarly to how pub-sub works. This concept also works with devices
(i.e. not only directly connected peers), and can load-balance between
several workers, if they are subscribed to the same topics. It also
handles failover nicely: new workers register when appear, with
nothing needed to be done by user.

-- 
Paul

Other related posts: