Hacker News new | ask | show | jobs
by qff 1620 days ago
Green threads (gunicorn/gevent) allows you to write Python the way you always have and gain many of the benefits of async.

Uvicorn and ASGI do not. For those you need to handle async explictly.

1 comments

i hear you - however the framework captures most of the abstraction entirely. In addition, most of the bottlenecks are actually i/o (db queries, etc) where its entirely worth doing it explicitly versus magic.

in a general programming language sense...ur right. But from the POV of what gunicorn/fastapi are actually used for - web frameworks - its actually quite good.