I made a module that does brpoplpush to queue the message, and uses pub sub to message back the reply you may be able to use. I plan on adding working queue monitoring in the future.
https://npmjs.org/package/redis-jobs On Friday, April 12, 2013 9:34:11 PM UTC-4, Tom Dunn wrote: > > Great, thank you for looking at my code. > > blpop definitely suits this task much better, I will update. > > I like the pipe/stream pattern used by the your project. > > Best - Tom > > On Friday, 12 April 2013 21:18:50 UTC-4, Thomas wrote: >> >> You could consider using blpop instead of setInterval. Also redis-stream >> was written in part for this purpose. >> >> 1. http://redis.io/commands/blpop >> 2. https://github.com/tblobaum/redis-stream/blob/master/example/simple.js >> >> Thomas Blobaum >> https://github.com/tblobaum >> >> >> On Fri, Apr 12, 2013 at 8:09 PM, Tom Dunn <[email protected]> wrote: >> >>> Oh wow, major overlook - https://github.com/TomDunn/node-taskqueue >>> >>> >>> On Friday, 12 April 2013 17:34:09 UTC-4, Tom Dunn wrote: >>>> >>>> Hello all! >>>> >>>> I am somewhat new here, but have been using nodejs and javascript in >>>> general for some time now. I needed a way to distribute task created by an >>>> initiator to some number of workers. >>>> >>>> This is a quick prototype that I hacked together yesterday. If anyone >>>> has any feedback to give, I would greatly appreciate it. Specifically I am >>>> looking for feedback regarding my design, and whether or not there is >>>> interest in this. >>>> >>>> Thanks! >>>> Tom >>>> >>> -- >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: >>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
