4 ms·
Do you guys have any plan to support porting from Django/Flask to Uvloop? If I have a plan to develop a web api base on Uvloop how do I start?
by giaosudau 10y ago
Do you guys have any plan to support porting from Django/Flask to Uvloop? If I have a plan to develop a web api base on Uvloop how do I start?
- 1st1 10y ago> Do you guys have any plan to support porting from Django/Flask to Uvloop? I don't think it makes a lot of sense to run Django/Flask on top of uvloop--the performance benefits will be negligible, if any. > If I have a plan to develop a web api base on Uvloop how do I start? In a few months we plan to opensource a web micro-framework based on uvloop & httptools. Right now you can use aiohttp which is quite mature.
- Jcol1 10y agoCan you share in general how it improves over aiohttp (speed, architecture etc)
- nerdwaller 10y agoAiohttp is the next layer up the stack, it just utilizes whichever event loop policy is active. So basically it just makes it faster in most (all?) async things it does. I use aiohttp and uvloop fairly heavily, though I've not formally benched with/without uvloop in quite some time.
- opticalfiber 10y agoNeither Django nor Flask is asynchronous/event loop based. It would neither make sense nor improve performance to run a Django/Flask app on top of uvloop. If you want to develop a web API using uvloop, you should look at aiohttp (http://aiohttp.readthedocs.io/en/stable/ http://aiohttp.readthedocs.io/en/stable/).
- eeZi 10y agoOr Tornado, which migrated to the asyncio event loop and is a much more mature alternative.