[zeromq-dev] notify pattern

Charles Remes lists at chuckremes.com
Mon Sep 9 16:15:14 CEST 2013


I usually recommend the majordomo pattern for work of this nature. It isn't a perfect fit, but you could modify the "broker" piece pretty easily to keep track of tasks and reissue them after a timeout. It's a good foundation to start from.

cr

On Sep 9, 2013, at 8:16 AM, R <ryan.deemer at gmail.com> wrote:

> Hello folks,
> 
> I am new to zmq and was implementing the "basic reliable queuing" pattern to distribute work across multiple workers. The workers are intended to do a task that could take several minutes once kicked off. 
> 
> I wanted to maintain a list of tasks and workers in the queue so that if a worker has crashed/is unresponsive for an hour(or so) I can send the task to another worker. I will have the worker notify the queue once a task is complete so that the task is taken out of the queue. 
> 
> Is there a better pattern to do this. 
> 
> Thanks a lot.
> 
> R
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130909/32210860/attachment.htm>


More information about the zeromq-dev mailing list