my advice on splitting this 2 processes is not use http, use child_process and use the other as a unix executable. if later you end up splitting into machines use a simple queue over http to accomplish this. this way you will not mix the solutions.
On Mon, Mar 17, 2014 at 4:31 PM, Trevor Norris <[email protected]>wrote: > > > On Sunday, March 16, 2014 10:47:22 AM UTC-7, Andy Zelinski wrote: > >> I am hoping for someone to point me in the right direction (examples, >> info) on how best to handle the need for some processor heavy computations >> that might best be executed with C++ math libraries. >> > >> is this best handled by forking a child_process? use node-ffi? wrap a c++ >> object that can handle the math and pass the parameters? >> > > Depending on the needs of your application, in the extreme case the most > performant way of handling this will probably be to tie into the native API > and use libuv to queue work in a thread. Once that work has completed you > would call a callback and return the results. > > This will also be the most complicated solution, so I'd only recommend > going this route if absolutely necessary. > > -- > -- > 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/d/optout. > -- Humankind cannot gain anything without first giving something in return. To obtain, something of equal value must be lost. That is alchemy’s first Law of Equivalent Exchange. ~ Alphonse Elric, Full Metal Alchemist -- -- 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/d/optout.
