Node is great for doing I/O and not much else, so I'd settle on using node as 
master and have child processes, defining a clear interface between the 2 
(perhaps JSONStream?) and then use whatever technology is more appropriate for 
implementing these child processes, which is where the CPU-heavy tasks get 
done. 

-- 
Pedro


On Friday, 24 de May de 2013 at 06:36, 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 [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.


Reply via email to