I've done some research regarding this question but still failed to find a definitive answer. In my Node server users can make Discord bots and have my server basically host it for them. What I want is a way to handle these bots (or long-running processes) in an efficient and performant manner. I basically need to run them in "parallel".
I'm using NestJS and I've considered Bull (as stated here) but I can't figure out if it's meant for long running processes or not.
I've also looked at Node Clusters but I failed to find a way to handle long-running tasks using them.