Re:Ask HN: What Python framework would you use to serve up a...
by hakanderyal on Wednesday November 05, 2014 @03:46AM
(#8560990)
Flask+uwsgi+nginx. Simple, battle tested, just works.
[ Parent
| on HN ]
Re:Ask HN: What Python framework would you use to serve up a...
by dheera on Wednesday November 05, 2014 @10:21AM
(#8562152)
Thanks!
Any particular points I should be aware of in this setup?
I've deployed many small websites using flask+uwsgi+nginx before, but for a high-volume API, there seem to be a number of "fragile" aspects to this, e.g. processes and threads settings, since WSGI is synchronous.
If I may ask, what's usually the weakest link in this setup, and what's the best way to monitor for problems and scale appropriately and intelligently as users grow? For example, let's say I set processes = 16, it hits the limit, but it turns out that I still have plenty of CPU and RAM to spare and I want it to dynamically make use of that?