Last post Feb 28, 2017 03:26 PM by march11
Feb 19, 2017 09:36 AM|moneyideas|LINK
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.
Feb 27, 2017 04:44 PM|march11|LINK
What do you need the server for?
Allow the app to run on your ras pi, talk to the server if necessary for updates, etc.
Feb 27, 2017 09:56 PM|moneyideas|LINK
There's two issues,
One is that my PI sits behind an expensive - pay per mb - metered connection that is also unreliable. Therefore I need it to be hosted somewhere and I can't leave the app open on my computer to keep it running.
The biggest thing though is how to scale it from just me being used at home to being used by others from the web. For me, I leave the app open and running. The question is how to leave it running for multiple people who don't necessarily have it open.
Feb 28, 2017 03:26 PM|march11|LINK
Well there are technologies, host on a web server that can push notifications to your app. There is an entire industry of development around this, look into SignalR and/or web sockets.
Lose the metered connection, or negotiate a more cost effective alternative. Additionally, cell company's offer M2M (machine to machine) connections that can be negotiated to be much less. Sim cards provide connectivity to the cellular service, which in-turn
could connect to your server.