6 ms·
You looked into using gevent workers? Sometimes you need to make tweaks to C-based dependencies to make them not block the event loop, but it should work fine f
by postpawl 5y ago
You looked into using gevent workers? Sometimes you need to make tweaks to C-based dependencies to make them not block the event loop, but it should work fine for doing a lot of concurrency without a bunch of rewriting. Usually your bottleneck is your database anyway.
- avinassh 5y agoHow does gevent actually works? It takes care of scheduling and polling?
- ghostwriter 5y agoit uses non-blocking sockets and libev interface to propagate events from the kernel https://sdiehl.github.io/gevent-tutorial/#greenlets https://sdiehl.github.io/gevent-tutorial/#greenlets