I looked at pretty well at every Flask server for my server on my hosting company which uses CentOS 7. The only one I got working was this server was uWSGI. This was using this
https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html
This was in conjunction with this
It seems to be a complete mess. I just need to ensure I have enough threads to cover all my suer of this Analytics for each user.
There might be a way to avoid presetting a number of threads when launching. This is explained with the –lazy flag here:
https://stackoverflow.com/questions/51931262/threading-in-flask-not-working-with-uwsgi-but-working-on-commandline
It seems uWSGI is as fast Gunicorn according to this:
https://blog.miguelgrinberg.com/post/ignore-all-web-performance-benchmarks-including-this-one
It seems you can easily configure the number of processes needed quite easily.
https://stackoverflow.com/questions/40235373/serving-a-wsgi-app-endpoint-in-a-separate-thread
Get some free tech trading book https://quantlabs.net/
Talk to me about your trading https://quantlabs.net/questions/
Get lifetime access to our private chart server? https://quantlabs.net/dvd/
NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!