[rabbitmq-discuss] last sticky wicket on map/reduce

Jon Brisbin 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.

Thanks!

J. Brisbin
http://jbrisbin.com/






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20101001/e8f11376/attachment-0001.htm>


More information about the rabbitmq-discuss mailing list