[zeromq-dev] Adding workers dynamically ...
Pieter Hintjens
ph at imatix.com
Tue Oct 11 18:39:04 CEST 2011
On Tue, Oct 11, 2011 at 3:39 PM, Seref Arikan
<serefarikan at kurumsalteknoloji.com> wrote:
> Apologies for being lazy and asking this in response to your mail; but I
> remember reading about a lazy joiners syndrome, where the later workers
> arriving later do not get a fair share of the work.
> Is this still an issue? Is paranoid pirate a solution to this problem?
Most of the Pirate patterns are synchronous, i.e. clients use REQ
sockets and send one request at a time. This means there is no upfront
sharing of work, unlike a PUSH/PULL model. These patterns are all
built on the LRU model, where workers only accept one request at a
time, and requests are only sent to workers that aren't busy. So you
can add / remove workers at any time, and requests are distributed
properly to available workers.
-Pieter
More information about the zeromq-dev
mailing list