[zeromq-dev] Dropping connection end points dynamically

Radha Krishna Srimanthula srimanthula.radhakrishna at gmail.com
Thu Apr 19 00:09:16 CEST 2012


Wow!

Thanks for the info Pieter!

Can you please help me with my first qn?

Just to restate - would it be ok to create a socket in a main thread - only
once, perform subscriptions/ unsubscriptions in another, and perform sends
on the yet another thread?

--
Regards,
Radha



On Wed, Apr 18, 2012 at 2:16 PM, Pieter Hintjens <ph at imatix.com> wrote:

> You can already unsubscribe at any time.
>
> By curious coincidence, also https://github.com/zeromq/libzmq/pull/317
>
> On Wed, Apr 18, 2012 at 2:23 PM, Radha Krishna Srimanthula
> <srimanthula.radhakrishna at gmail.com> wrote:
> > Hi,
> >
> > My scenario is this:
> >
> > I have a set of networked devices, which need to be a part of an
> > installation group. Its a requirement to cater to scenarios where
> existing
> > devices can go off the installation and new devices get into the
> > installation. Each device does auto-discovery to figure who are in the
> group
> > at any given point in time and communicates to all of 'em using pub-sub,
> for
> > which I am using zeromq.
> >
> > The above scenario places an expectation that the subscription list that
> > each device maintains change (with addition/ removal of devices from the
> > group). In this context, I have a few questions:
> >
> > I plan to create the socket, manage the end points and do the pub-sub
> > communication in three different threads. For various legacy reasons, I
> need
> > to use the existing threading model -based on pthreads- for now (I plan
> to
> > move to zeromq's threading model later). Is there a potential failure
> > scenario here? Is it ok to use three different threads for the above said
> > purposes?
> > We have mechanisms to create multiple connection end points, one for each
> > publisher and subscribe to their updates. In a dynamic scenario like the
> one
> > mentioned above, is there an API to drop an end point and stop
> subscribing
> > to updates from the publisher?
> >
> > Any help will be greatly appreciated.
> >
> > --
> > Regards,
> > Radha
> >
> >
> > _______________________________________________
> > 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/20120418/fab25307/attachment.htm>


More information about the zeromq-dev mailing list