Once you start doing any heavy lifting or large amounts of parallelizable tasks you will find yourself drifting towards the threading model from within your event loop.
Unfortunately Node's implementation of web workers uses external processes and serializes all the data as JSON. This makes them considerably slower than Chrome's implementation of web workers, which use threads.
In general if you're doing something compute-bound, Node's single threaded event loop isn't going to help you.
Depending on your performance requirements you might take a look at LMAX and Disruptor. At the very least you could be writing Java instead of C++
In general if you're doing something compute-bound, Node's single threaded event loop isn't going to help you.
Depending on your performance requirements you might take a look at LMAX and Disruptor. At the very least you could be writing Java instead of C++