Re: [flask] Clustering/High Availability
- dorian i
- 2013-06-30 @ 08:58
Performance: Usually the bottleneck will be the database (benchmark, if
flask is the slow part see falcon framework)
High availability: Check out uwsgi and a load balancer.
I think you do ip-failover on several load-balancers that balance a group
of uwsgi servers.
The uwsgi servers can talk with each other (rpc stack and more). If you
host with aws,linode,rackspace you can use their loadbalancers.
Authentication/authorization is different for each app?
Roles i don't understand, app specific?
Sessions: usually rest-apis are stateless (you authenticate in each
request). You can use a normal db for sessions and if you need
high-availability somehting like cassandra/riak.
On Sun, Jun 30, 2013 at 12:04 AM, Franky Diaz Trepat <
> Hi Flaskers,
> My name is Franky and I'm part of a team that wants to migrate a current
> RESTful API to an open-source framework and gain on security, performance,
> high availability, etc.
> I have been through all the bullets or topics to cover on Flask except for
> I'm working on a Presentation and I need to put some info about Flask and
> Clustering or High availability and performance.
> If anyone could help, I looked the
> But I need a bit of guidance.
> Basic question is:
> Is it possible to deploy/install a flask RESTful API to multiple
> integrated servers and handle things like
> authentication/authorization/roles/sessions etc?