2 ms·
Technically you can offload CPU-heavy things to a cluster of extra Node processes that handle work in a serial fashion. Nothing wrong with this; if you're comfo
by FooBarWidget 12y ago
Technically you can offload CPU-heavy things to a cluster of extra Node processes that handle work in a serial fashion. Nothing wrong with this; if you're comfortable with Javascript then this is probably better than rewriting those parts in different languages.
- lsiebert 12y agoYou could, and that might get you the performance you need, but if not I would likely use https://github.com/node-ffi/node-ffi https://github.com/node-ffi/node-ffi or maybe http://www.swig.org/ http://www.swig.org/ to call out to C++ or C code. There's probably also a way to call Java, ( a quick search suggests https://github.com/joeferner/node-java https://github.com/joeferner/node-java perhaps) but I can't speak to that in particular.