3 ms·
For Python users looking for a very slim framework to build your API on, I'd highly recommend falcon https://falcon.readthedocs.org/en/latest/ https://falcon.re
by waterside81 11y ago
For Python users looking for a very slim framework to build your API on, I'd highly recommend falcon https://falcon.readthedocs.org/en/latest/ https://falcon.readthedocs.org/en/latest/
It's built by the folks at Rackspace and it's super fast because you can build it using Cython and because it's just a very thin layer over wsgi. We switched over to it from Django and saw a 10x improvement in response time.
- catshirt 11y agoDjango/Rails/etc are kitchen sinks. they are not optimized for "building an API", or speed for that matter. it's kind of silly to expect them to perform as well.
- waterside81 11y ago100% agree, but since they're so ubiquitous, I'm sure quite a few people out there do so without thinking twice.
- catshirt 11y agoyou're right, i hope i didn't sound argumentative. i should clarify my own point too, and add that just because they are not "built for it", or are slower, doesn't mean they are inherently a bad choice either. it's really just what you need to optimize for. so many ways to skin a cat...