7 ms·
I've used gevent for years and I've benefited from being able to fire many http requests using requests and many postgresql sql queries in parallel from a djang
by wolf550e 5y ago
I've used gevent for years and I've benefited from being able to fire many http requests using requests and many postgresql sql queries in parallel from a django view, waiting for all of them to complete and generating a response. It was easy to do and the code was easy to write.
For the simple case, the throughput is not improved over sync workers. The scalability does improve. Basically, your code can magically cheaply wait for thousands of sockets to get ready, but it can't magically process more requests per second.