The Python Oracle

Can I serve multiple clients using just Flask app.run() as standalone?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Melt

--

Chapters
00:00 Question
00:32 Accepted answer (Score 353)
02:29 Answer 2 (Score 70)
03:43 Answer 3 (Score 20)
04:22 Thank you

--

Full question
https://stackoverflow.com/questions/1481...

Accepted answer links:
[flask.Flask.run]: http://flask.pocoo.org/docs/api/#flask.F...
[werkzeug.serving.run_simple]: http://werkzeug.pocoo.org/docs/serving/#...
[wsgiref]: https://docs.python.org/3/library/wsgire...
[Deployment Options]: http://flask.pocoo.org/docs/deploying/

Answer 2 links:
[the Python GIL]: http://wiki.python.org/moin/GlobalInterp...
[Gunicorn]: http://gunicorn.org/
[asynchronous workers]: http://docs.gunicorn.org/en/latest/confi...
[nginx]: http://nginx.org/en/

Answer 3 links:
[source]: https://github.com/pallets/flask/blob/ma...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #flask

#avk47