[nanomsg] Re: Best practices to high availability pubsub

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Wed, 12 Nov 2014 18:08:56 +0100

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

On 12/11/14 18:03, Pierre Salmon wrote:

> In this case, the better way is to use another pattern (like BUS).

BUS is unreliable as well. In fact, no multicast data transfer can be
made reliable as a matter of principle. Think of it as a law of nature :)

> But, to increase performance, should I handle every socket in a
> separate thread ?

You don't need multiple sockets. You can connect a single socket to
muliple publishers.

Martin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJUY5QoAAoJENTpVjxCNN9YWRAH/RIeSx5qnyGfPCh7unDt6NcB
Oeo2WXvyfF8ICTKVuiwLOWXedJV7kBgBMmNf49ZkTB7S7EVa9PoMv7jFKxqLRUNt
UzmGWX7Ffgkudo0sVvcLzpZfaxsOe67S1eUr5gtNyfl5V9iPeL5E9/yfWGpiw4Eu
Uz8UQnBpoLd1GDOg9d6tjfmBj6iGaitHs7BXd/OVY8w1YwDRFTs5yjcnthqGL+mC
b75ejxoHb1SFszAAUPUChJQs54FveMI4HFeYY4vZayZIAOhAgAcmqTUOOjkO2SMy
dDd4nWWeQJU5BhSAbXerrn5EkAmHQ3mAJM7ySjXElIe7MlhgUDmiHExd4m0ygXE=
=NZMF
-----END PGP SIGNATURE-----

Other related posts: