Yes - you can upload to another server. Just use your usual query methods to publish the data you need to "compute". Since requests are asynchronous, it will not block the normal Node thread. When the request returns, you have the data that you need, and you can make changes at the last minute before pumping it to the client.
Then you can have a "server farm" that handles these things - for example, on EC2 you can create a load balancer, and then just node make a request for this balancer. There is no need to do anything in the node, for example, remember which server was the last, or something like that.
Alternatively, if it is more command line related and does not need scalable scalability, you can use node exec to make a system call, then the callback will be called again with any return.
Whatever you do, do not perform these calculations inside node :) - your expectations are true. This will bomb your speech, as I studied hard a couple of times. Asink is your friend.
Stephen
source share