News for hackers. Stuff that matters.
Re:Discover Flask by dorfsmay on Sunday February 21, 2016 @09:51AM (#11144697)
Wait, in PROD, you don't use Python as the server, you stick uWSGI in front of python/flask, that will deal with the network I/O limitation.
Re:Discover Flask by nawitus on Sunday February 21, 2016 @12:18PM (#11145353)
How does uWSGI help here? The OP recommended running 4 instances of Flask/Python, and with uWSGI you still have 4 instances. It doesn't help with I/O.
Re:Discover Flask by dorfsmay on Sunday February 21, 2016 @03:54PM (#11146465)
Because with uWSGI you can mix a number of threads and processes (recommended because more processes than cores wastes time with context switches, and a low number of threads per process is a waste of cycle. uWSGi is an event loop (not unlike node) which makes dispatching requests to threads and processes very easy.