Python Flask webserver stop responding
While the default web server might not be the best for production, it is probably not the root cause of the crashes.   I use it in a production environment on an internal network and it is very stable.  Before blaming the web server check to make sure your code can handle requests that that may collide with each other.   In my case I had lots of stability issues before I instituted locking on data base tables so that certain requests would be blocked until previous requests were done with updates.   Flask can't make sure your code is thread safe.  And changing the web server won't help if it is not.
I am running a flask web server, it works fine during testing, but now freezes at least once per day. All I need to do is to restart it and it will work again. Is there a good way to monitor it and maybe I should just kill/restart it every time it fails. Do people actually kill their web server periodically to avoid this kind thing from happening?