[zeromq-dev] zyre question

Kalyan Bade kalyanbade at gmail.com
Tue Jun 30 02:53:45 CEST 2015


Hi Pieter,

Thanks for the answer. I think I didn't explain the issue properly. We had
this design, but somehow some "shout" messages are lost. Can you please
help if there is a issue in this approach or am I missing something basic
here?

At time t1 -- Thread 1 starts -- does the following -- zyre_new(),
gossip_bind(well-known-inproc-endpoint), zyre_start(),
zyre_join(well-known-group)
At time t2  -- Thread 2..n starts -- zyre_new(),
gossip_connect(well-known-inproc-endpoint), zyre_start,
zyre_join(well-known-group)

At time t3 -- Thread x sends a "shout" to the multicast group, but it is
not received by thread 1. This is intermittent though.

Are the sequence of steps correct? If the zyre network is not ready at t3,
is there a trigger so that we can query for the info that is lost.

Thanks,
Kalyan

On Wed, Jun 24, 2015 at 11:52 PM, Pieter Hintjens <ph at imatix.com> wrote:

> This is a catch-22, you are trying to bootstrap the gossip network
> using zyre which needs the gossip network to start...
>
> You should bind a fixed inproc endpoint, and use that to kick off the
> gossip discovery.
>
> On Thu, Jun 25, 2015 at 1:59 AM, Kalyan Bade <kalyanbade at gmail.com> wrote:
> > Howdy folks,
> >
> > We recently started using zyre for our inter-thread communications (where
> > threads come and go and are discovered through zyre using inproc comm). I
> > have a requirement where I need to know when a particular thread joins
> the
> > global chat group. I was using the JOIN message and the sender-id from
> the
> > message to determine this. But, I don't see this message coming to the
> > thread which does the gossip-bind. Is this expected? Is there any other
> way
> > for the gossip-bind thread to get this JOIN message?
> >
> > Thanks in advance..
> > - Kalyan
> >
> > _______________________________________________
> > 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/20150629/0629b627/attachment.htm>


More information about the zeromq-dev mailing list