[zeromq-dev] Determine Connection state PUB/SUB

Bachmair Florian - flexSolution GmbH florian.bachmair at flexsolution.eu
Fri Aug 14 07:20:53 CEST 2015


Hi
It is more like that Task3 is loosing the subscribtion after a while.
But I will do something like Heartbeating to detect that.

Thank you

Am 13.08.2015 um 19:06 schrieb Marcin Romaszewicz:
> I've tried to figure that out as well, and there is no way to do it on 
> the ZMQ level. Have Task1 emit heartbeats and if Task2 and Task3 
> aren't seeing heartbeats, it means that the subscriptions haven't 
> propagated yet. There can be a sizeable delay between subscribing and 
> actually getting data (I've seen this as high as a few minutes, but I 
> have a TON of subscribers in a complex topology).
>
>
> On Thu, Aug 13, 2015 at 1:16 AM, Bachmair Florian - flexSolution GmbH 
> <florian.bachmair at flexsolution.eu 
> <mailto:florian.bachmair at flexsolution.eu>> wrote:
>
>     Hello!
>
>     Is there a way to determine the connection state of my subscriber?
>
>     Szenario
>
>
>     Host1                                Host2
>     Task 1
>     Task 2                                Task3
>
>
>
>     Task 1 publishes a topic.
>     Task 2 and Task 3 are subscribing this topic
>
>     Task 2 gets it, Task3 don't
>
>     If I restart Task 3 it gets the value as well.
>
>
>     So is there a Oportunity to get the connection state of the subscriber
>     in Task3?
>
>     _______________________________________________
>     zeromq-dev mailing list
>     zeromq-dev at lists.zeromq.org <mailto: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/20150814/31d32192/attachment.htm>


More information about the zeromq-dev mailing list