4 ms·
grpc is one that we're struggling with at the moment, psycopg2 is another that won't Just Work (you need to use a special "adapter" that teaches the underlying
by ekimekim 8y ago
grpc is one that we're struggling with at the moment, psycopg2 is another that won't Just Work (you need to use a special "adapter" that teaches the underlying C library to hook into the event loop). In general anything that is a) not implemented in pure python, and b) doing calls that you expect to be monkey patched (mainly network calls).
This is thankfully fairly rare, but it is something you need to be aware of.
- jacob019 8y agoThere are pure python alternative implementations of these protocols and of mysql, anything pure python works well, but of course there are modest CPU costs. Then there are workarounds if you must use C libraries with blocking IO, like using a pool of sub-processes. But using C libraries for IO is pretty low level stuff, and making them concurrent is beyond the scope of python.