Re: [flask] Architecture advice for flask and nginx
- Dorian Hoxha
- 2015-09-12 @ 09:00
Flask NEEDS an app-server. Have you tried uwsgi ? It can wok alone(has http
engine), has hundreds of options, can work really good/efficient with
nginx, has metrics etc ?
On Thu, Sep 10, 2015 at 2:49 AM, Andrew Boag <firstname.lastname@example.org>
> We have a flask application running at the moment that is essentially a
> RESTful web service engine. Handles some quite big POSTs (several Meg)
> as well as general GET communications.
> We are running nginx in front of apache with WSGI - we were running
> only apache but nginx gives us some better connection handling for slow
> connections ... just running as reverse proxy.
> IT would be great to get rid of apache and just have nginx running with
> flask (using wsgi still?). There seem to be a number of ways to skin
> this cat (how to best architect flask with nginx).
> We want:
> - light resource footprint (obviously)
> - robust
> - lots of good metrics visible
> Anyone have any advice, thoughts, experiences?
> Andrew Boag - Managing Director
> tel: +61 2 8002 1758
> mob: +61 421 528 125