librelist archives

« back to archive

Clustering/High Availability

Clustering/High Availability

From:
Franky Diaz Trepat
Date:
2013-06-29 @ 22:04
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 one:

Clustering

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 
> http://flask.pocoo.org/docs/becomingbig/#becomingbig

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?

f(t)

Re: [flask] Clustering/High Availability

From:
dorian i
Date:
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?
http://flask.pocoo.org/snippets/category/authentication/
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 <
francisco@simpleenergy.com> wrote:

> 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
> one:
>
> Clustering
>
> 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
>
> http://flask.pocoo.org/docs/becomingbig/#becomingbig
>
>
> 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?
>
> f(t)
>