[nanomsg] Re: Loadbalancer with async backend

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Fri, 22 Nov 2013 10:41:43 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Stefan,

> I am looking for a way to have a synchronised req/rep to a broker,
> and a series workers that could handle requests. The fundamental
> problem with this method is that I can't track the request at the
> frontend to guarantee that the reply arrives at the right socket.

Why not have a central device to dispatch the request? I.e. each
client has a REQ socket, each worker has a REP socket and there's a
device in the middle everyone connects to.

Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSjybXAAoJENTpVjxCNN9YFDAH/i/XUE5cnlTiIvrsIAK6a4zX
4CRGJ3i4oydThdt4MAC1FxYp75Vu5mhU3HBXAHK4trX4Y01/8H5XZbgH3An9MB58
hYnb+Jwu2JjuBosKZkqEUEPlLMUhrQjZgaIzQuNMwguQUsZgvYsR9snfgVaqXvWG
DFhSncTXjCYRv45tyfdl0AejYM/jZ9WGNW06u8exMukiMbov4Zf30IO8fVlr3CFu
hlMtZmnyyzIuU+GtgOksBJ/vhpH8zQgnB+4C2tpzPksqPynQVMAqRWJtFjbvwuNO
enHlSWgeVyTa/2ukqGbHV2UfmEIipL0R5KlVcbqlRl6oex1EEA0y7Nu70JV3P9Y=
=4FA4
-----END PGP SIGNATURE-----

Other related posts: