[rabbitmq-discuss] last sticky wicket on map/reduce
jon at jbrisbin.com
Fri Oct 1 15:42:37 BST 2010
On Oct 1, 2010, at 9:31 AM, Marek Majkowski wrote:
> I'd solve it by sending a message 'QUIT' to the queue once we're sure
> that no other work is left in the queue. A worker that receives that
> QUIT message may think - okay, there is at least one more 'behaving'
> worker, I can't see any work to do, he also can't see any more work,
> one of us can happily go home.
This is an interesting approach. I was handling the QUIT message when I received it rather than spooling off into a separate thread a "watcher" that only did the clean up after it saw that no more work needed to be done.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss