There's nothing wrong with this per se, but you're simple not using node to its strengths here. Mozilla's Persona actually does something similar using node-compute-cluster (https://github.com/lloyd/node-compute-cluster).
But why use javascript for this? Computationally heavy programs are traditionally better done in purely functional languages, so I would rather use something lower level (thus faster) like JVM (Scala/Java) for this. Also, there are a lot fewer libraries to support computation heavy tasks in the Node ecosystem than in Java or Haskell. If you feel you MUST use a high level scripting language, I guess JS is the best choice, followed by Python. On Friday, 24 May 2013 11:06:12 UTC+5:30, Baz wrote: > > I'm new to node and I am investigating using node for a non-web > always-blocking cpu-intensive high-memory process. The process basically > runs in an infinitely loop, loading a lot of data from a datastore into > memory, applying complex (blocking) business logic, then saving the result > back to the store, and starting over again. It doesn't respond to > web-requests or process html or anything of that nature. It just needs to > run this loop. > > Is this an acceptable use-case for node, given that it breaks every > rule-of-thumb ever written? Is node reasonably efficient at doing this (it > doesn't have to be the best solution in the world, just good enough)? Are > there pitfalls to consider with having an always blocked event loop? Are > there any issues with using lots of ram on a server (30gb+) in a single > node? > > Additionally, anyone know of any good write-ups of people who have tried > this? > > Thanks for listening! > > Baz > > -- -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com 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 nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.