[zeromq-dev] Load-balancing pattern vs. round-robin
Eugene Alterman
eugalt at gmail.com
Mon Dec 3 05:21:20 CET 2012
The guide mentions two possible approaches for the design of the
server-to-worker interface in the asynchronous client-server pattern -
a ROUTER socket with the load-balancing pattern and a DEALER socket that
does round-robin load balancing internally.
In this particular case worker threads are in the same process as the
server thread, but my understanding is that in the general case the
second approach is more reliable, since if a worker goes offline a
ROUTER will drop an unroutable message, while a DEALER will send it to
another worker that is available.
Is this understanding correct?
More information about the zeromq-dev
mailing list