[zeromq-dev] Fine control in the ROUTER socket
Pieter Hintjens
ph at imatix.com
Tue Apr 23 11:28:05 CEST 2013
On Tue, Apr 23, 2013 at 10:57 AM, Andrey Ushenin <andrey_ushenin at yahoo.co.uk
> wrote:
> 2. related to #1: is it possible to have a watermark individually counted
> in the ROUTER socket for each attached client?
>
Not sure what you are asking here.
> 3. More general question - is DEALER-ROUTER setup as we use them the best
> way to implement our requirements? I'm wonderting if there are any
> alternatives where we could still use the routing functionality like the
> one provided by the ROUTER but have a more control over individual client
> pipes.
>
In Zyre, we use a ROUTER for incoming messages but send all outgoing
messages on a DEALER, one per peer. This lets us be very precise about e.g.
closing the DEALER socket when we think a peer has died. We use the ROUTER
identity ask key to hold an object per peer, which includes its DEALER
socket.
-Pieter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130423/f1d4ebb2/attachment.htm>
More information about the zeromq-dev
mailing list