[zeromq-dev] DEALER to ROUTER and reusing identity.

Pieter Hintjens ph at imatix.com
Mon Feb 25 07:45:14 CET 2013


On Mon, Feb 25, 2013 at 1:53 AM, Trevor Bernard
<trevor.bernard at gmail.com> wrote:

> I have a use case where I'd like to re-cycle DEALER identities when a
> failover situation occurs. I have one service SV1 that creates a
> DEALER connection to a ROUTER socket on SVn. SV1 has a hot standby and
> uses the same identity in a failover situation. The first connect goes
> as you would expect, but in the situation of a failover, the second
> SV1 never receives any messages from SVn.

I'd advise against trying to use identities to make this failover
work. You're going to be fighting 0MQ's autoreconnect. Instead,
provide authentication in the protocol itself and design the router
app to do the failover itself.

-Pieter



More information about the zeromq-dev mailing list