How to apply clustering/spawing child process techniques for Node.js application having bouth IO bound and CPU bound tasks?
问题 I'm working on a IOT project where the Node.js application perform following tasks: 1. Reading stream of messages using asynchronous messaging library (IO bound) 2. Sending the messages to web service where machine learning happens based on the messages that were sent by Node.js application (IO bound as only API call is involved) 3. Receive the pattern generated as a result of machine learning from web service (using REST API) 4. Compare the pattern against the real-time streaming messages