Now the question. I can either
- Put some hard-weight runtime (not once-executed) logic in the child process. But then count of node.js threads increases by 2 times (don't forget, there is a load balancer that manages containers).
- In the other hand, handling this separated logic asynchronously in the main thread saves resources (less parallel CPU processes) but then main node.js process is going to be much slower because count of EventLoop tasks will be much bigger. Which criteria for picking up the forking or async option can you suggest?