Here's an example of what I'm trying to do.

Let's say I've made a fx trading bot that uses a fx brokers website, queries the prices, and submits trades according to settings specified. It runs fine in a console application from my raspberry pi.

Now I would like to commercialize it in a website where I can have multiple users running their own instance of the bot with their own settings and have each bot run 24/7.

I'm having trouble conceptualizing the design of it to accomplish the constant, individual running of bots from a website. Each user running on it's own thread? Thread sharing? Anybody have some pointers?

I've done windows forms but not websites, and I haven't done things that require it to run even when the user isn't on it.