Comment

Comment by samwillis

I wish Gunicorn with Gevent had won the “async vs. coroutine Python” battle. The Developer UX is so much better with coroutines and just as scalable as asyncio (async/await).

Many people misunderstand asyncio thinking it will make your code faster, when what it does do is make it more scalable (if you have allot of IO for example). But at the expense of developer UX. Mixing async and sync code within Python is a nightmare. I am completely unconvinced by the move to asyncio everywhere in Python.

I have been using Gunicorn with Gevent for nearly 10 years and never had a problem with it.

Languages like JavaScript that have been async from the start work well as you (mostly) only have an async api.

https://docs.gunicorn.org/en/latest/design.html#async-worker...

http://www.gevent.org/

parent samwillis 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton