Use a job manager https://github.com/flatiron/neuron
On Tuesday, March 6, 2012 8:10:44 AM UTC-7, Gollum wrote: > > I'm playing around with node.js, trying to re-write a particularly > poorly designed part of my production system at work. So far, so good, > I use rabbitmq for messaging, and my node.js part of the system runs > ghostscript command line tool to convert tiff files to pdf. Obviously > I need to make sure I'm not running more than some fixed amount of > conversions at a time. What would be the best way to do this with > node? I understand that maybe node.js isn't really about running heavy > disk IO stuff, but I'm having too much fun with it to quit. I was > considering just using a blocking call to execute command line > utilities but the thing is that some messages don't require this > conversion and there's no need to delay their processing. -- 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
