Кратко про библиотеку gevent в Python: высокопроизводительная асинхронная библиотека
Привет, Хабр! Gevent — это высокопроизводительная асинхронная библиотека для Python, которая решает проблемы многозадачности с помощью корутин, известных как " зеленые потоки " или Greenlets . Зеленые потоки — легковесные корутины, которые позволяют выполнять задачи одновременно без затрат ресурсов, связанных с традиционными потоками. Также Gevent преуспевает в неблокирующих операциях ввода/вывода и имеется встроенная техника под названием " monkey patching ", которая модифицирует некоторые модули стандартной библиотеки, делая их кооперативными. Так можно преобразовывать блокирующие вызовы в неблокирующие в рамках среды Gevent.
https://habr.com/ru/companies/otus/articles/821199/
#python #программирование #gevent #библиотеки #highload #высокая_производительность #otus
You can now easily change the WSGI server for Lumos. You can choose between Gevent WSGI and Flask.run().
Lumos lets you run your own file cloud on any computer or server. It has multiple features that will help you and your members stay productive and fast. - GitHub - Wervice/Lumos: Lumos lets you run...
Great overview of #Python #async frameworks. I still like the #gevent framework as works with minimal code changes and no need for additional #asyncio libs (just run 'apt search python3-aio' to see what I mean). The monkey patching still feels like magic fairy dust to me.
https://www.bitecode.dev/p/asyncio-twisted-tornado-gevent-walk
@ossmkitty
wote some excellent articles about gevent, used in gunicorn, on his blog.
https://seecoresoftware.com/blog/categories/cat_python-gevent.html
I never did like Asyncio, but I was scared to do something differently from everyone else. But I see that gevent, is continuing to evolve, has great documentation, and makes life hugely easier for the developer, so I will be switching to it.
I wonder why the whole Python community went with Asyncio? So painful to use.
Thank you @ossmkitty
for all the work that you have done on #zodb, #relstorage and #gevent. #Python
#welcome to mastodon.
We have to talk about this Python, Gunicorn, Gevent thing https://hackeroo.co/330980