[zeromq-dev] state of publishers and subscribers via ZMQ_PUB and ZMQ_SUB

Aravind Sethuraman arvinj1 at gmail.com
Sat Oct 24 03:21:23 CEST 2015


hello doron,
i am actually interested in making the publisher a client and subscriber a
server. Correct me if i am wrong but is it not a departure from the usual
understanding of publisher being a server and subscriber clients? is it
even possible to do that (i am guessing since you mentioned it; it must be
) . also how do i know which subscribers are connected and are reconnecting
etc?

On Fri, Oct 23, 2015 at 5:55 PM, Justin Karneges <justin at affinix.com> wrote:

> If you make the subscriber the client, reconnections should still work. I
> tested this myself again just now to be sure.
>
> On Fri, Oct 23, 2015, at 02:07 PM, Doron Somech wrote:
>
> make the publisher the client (connect) and the subscriber the server
> (bind), this is important, it will not work the other way, send heartbeat
> from publisher every X seconds (don't forget to make sure subscriber
> subscribe to the heartbeat). If you do it that way reconnection will happen
> automatically. Alternatively you can just enable TCP keep alive.
> On Oct 23, 2015 11:53 PM, "Aravind Sethuraman" <arvinj1 at gmail.com> wrote:
>
> I am building a full mesh of publishers and subscribers (no brokers) and
> as i would like to implement re-connecting when there is a reboot of a
> node. How can i get a list of current state of subscribers to a publisher
> node?
>
> thanks
> aRavind
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
> *_______________________________________________*
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20151023/c117fc29/attachment.htm>


More information about the zeromq-dev mailing list