What would be the best way to run the same script in multiple instances for a web application in Nodejs
Lets say for example I have a crypto trading bot which I specify the buy and sell prices for a token. The script will continously look for those prices to buy and sell at. However, now lets say I want to have multiple of these bots running at the same time for my web application. Would I just call multiple child processes and each of them run the script? Or what would the best possible solution? I would essentially like to be able to pause/start/stop each indivdual order on its own without disrupting the others.
Maybe using Cluster.