3 ms·
I'm using greenlets via gevent to handle a system that interacts with a number of http APIs, exposes an RPC API and has a data processing loop. I absolutely lov
by Waterluvian 9y ago
I'm using greenlets via gevent to handle a system that interacts with a number of http APIs, exposes an RPC API and has a data processing loop. I absolutely love the concurrency model. For cpu bound processes and short API timeouts, getting to control when my "threads" yield makes it very easy to avoid the common threading pitfalls.
It also means my application can remain very simple. Ie. I don't need to think about things like Celery or Redis or handling locking meticulously.