Re:Sanic – Python 3.5+ web server that's written to go fast
by rcarmo on Saturday October 15, 2016 @11:13AM
(#12714212)
Curious to see how this fares against something like uWSGI with aiohttp support (haven't tried either, but uWSGI brings so much more to the table than speed that I'd like to be able to make an informed choice).
[ Parent
| on HN ]
Re:Sanic – Python 3.5+ web server that's written to go fast
by ddorian43 on Saturday October 15, 2016 @11:31AM
(#12714307)
asyncio is experimental still on uwsgi http://uwsgi-docs.readthedocs.io/en/latest/asyncio.html
Re:Sanic – Python 3.5+ web server that's written to go fast
by dom0 on Saturday October 15, 2016 @12:24PM
(#12714512)
Running asyncio-based servers on uwsgi is very stable though, but may not achieve 100 % of the performance native asyncio in uWSGI may have. Even then, Tornado is "fast enough" for us (ie. we run out of network bandwidth before we run out of CPU).
But the main advantage - that you're still using uwsgi as a "unified application server" of sorts - persists, which was the main point for us (Django, Flask, Tornado on uWSGI). This simplified deployment and administration quite a bit.
Re. topic: It would be really interesting to see it compared to Tornado.
Re:Sanic – Python 3.5+ web server that's written to go fast
by rcarmo on Saturday October 15, 2016 @05:12PM
(#12715671)
Yeah, I use uWSGI for a lot of things (check out http://github.com/rcarmo/piku, for instance), so am more interested in figuring out if I can get a little extra mileage off it.