2 ms·
Flask+uwsgi+nginx. Simple, battle tested, just works.
by hakanderyal 12y ago
Flask+uwsgi+nginx. Simple, battle tested, just works.
- dheera 12y agoThanks! 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?