[zeromq-dev] Connecting to a different socket after connecting and sending messages to one socket?
Brian Granger
ellisonbg at gmail.com
Sat Nov 20 18:21:03 CET 2010
On Sat, Nov 20, 2010 at 8:01 AM, Praveen Baratam
<praveen.baratam at gmail.com>wrote:
> Dear Chuck,
>
> Thanks for writing back. I am aware of the solution you suggested using an
> intermediate broker.
>
> But in the architecture we are planning, introducing an intermediate broker
> node will create a bottle neck.
>
> My doubt is not about the architecture needed but in regard to any ZMQ
> socket in general. Can a ZMQ socket be connected to a new end point after it
> has started receiving messages from prior connected sockets. For example can
> a SUB socket connect to a new PUB socket apart from the PUB sockets its
> already connected, especially after receiving some messages from the prior
> connected PUB SOCKETS?
>
>
With the current APIs this is not possible. But 0MQ sockets are
lightweight, so why not just create a new one for the new peer?
Brian
> Thank you for your patience and support.
>
> Regards,
>
> Praveen
>
> On 19 Nov 2010 10:24, "Chuck Remes" <cremes.devlist at mac.com> wrote:
>
> On Nov 18, 2010, at 3:22 PM, Praveen Baratam wrote:
>
> > Hello All!
> >
> > I have a particular situation ...
>
> This is definitely possible. Use a Streamer device to act as a centralized
> "broker" between your PUSH/PULL clients and it will handle the load
> balancing of N clients to M servers automatically. Clients and servers will
> be able to join (and leave) without incurring any cost in notifying each
> client about a new server with which to bind. By binding to the Streamer
> device, it takes on the responsibility of balancing messages across the
> available servers.
>
> cr
>
>
>
> _______________________________________________
> 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
>
>
--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101120/4484de82/attachment.htm>
More information about the zeromq-dev
mailing list