You can’t just plug and play it. As soon as you introduce async you need to have the runtime loop and so on. Basically the whole architecture needs to be redesigned
asyncio has been designed to be as "plug and play" as it gets. I'd discourage it, but one could create async loops wherever one would need them, one separate thread per loop, and adapt the code base in a more granular fashion. Blocking through the GIL will persist, though.
For any new app that is mostly IO constraint I'd still encourage the use of asyncio from the beginning.
Sure agree, for bi directional websocket communication it is the way to go.
It's just that you have to really think it thorough when using it. Like using asyncio.sleep instead of sleep for example and there are more little things that could easily hurt the performance and advantages of it.
It's this - asyncio is a nightmare to add to and get working in a code base not specifically designed for it, and most people aren't going to bother with that. asyncio is not good enough at anything it does to make it worth it to me to design my entire program around it.
whilenot-dev|6 months ago
For any new app that is mostly IO constraint I'd still encourage the use of asyncio from the beginning.
MichaelRazum|5 months ago
odyssey7|6 months ago
It’s clear that Dr. Frankenstein has been at large and managed to get his hands on Python’s corpse.
DrillShopper|6 months ago