Ask HN: What Python framework would you use to serve up a REST API?
1–10 of 13 posts
Re: Ask HN: What Python framework would you use to serve up a REST API?
#2Re: Ask HN: What Python framework would you use to serve up a REST API?
#3However community isn't big as that of Flask and has low bus factor.
Other alternative is Django REST Framework[0]. It's also well documented and get the work done. However code base is large compared to Tornado. Advantage is, it has a bigger community support and it's easy to find a developer.
Re: Ask HN: What Python framework would you use to serve up a REST API?
#4Re: Ask HN: What Python framework would you use to serve up a REST API?
#5Re: Ask HN: What Python framework would you use to serve up a REST API?
#6Re: Ask HN: What Python framework would you use to serve up a REST API?
#7I use Eve [1]. [1] http://python-eve.org/
Re: Ask HN: What Python framework would you use to serve up a REST API?
#8Flask+uwsgi+nginx. Simple, battle tested, just works.
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?