]> Sergey Matveev's repositories - stargrave-blog.git/commitdiff
Gunicorn и gevent в Python
authorSergey Matveev <stargrave@stargrave.org>
Tue, 11 Jan 2022 15:09:46 +0000 (18:09 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 11 Jan 2022 16:41:25 +0000 (19:41 +0300)
https://news.ycombinator.com/item?id=29874106
Первым комментарием к этой новости идёт:

    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).

Полностью солидарен с этим! async код это грёбаный ад в Python. Как
минимум потому что по сути не выйдет мешать sync и async код вместе.
Или делать по две реализации или всё только с async-ом. Но вот только
зачем? sync код гораздо проще и удобнее писать, удобно отлаживать. В
обоих случаях придётся I/O библиотеки затачивать либо под дружелюбность
к gevent-у, либо к async. Плюс это всё очень хорошо работало ещё и на
Py27, позволяя вполне себе high-load решения делать для web-а.

    I cannot be the only one disappointed by the lack of unicorns with guns.


No differences found