Re:Django 3
by Ralfp on Monday December 02, 2019 @11:18AM
(#21683789)
Can you explain why asyncio is not good?
[ Parent
| on HN ]
It's convuluted, it's not structured concurrency (https://vorpus.org/blog/notes-on-structured-concurrency-or-g...), fundamentally despite being async/await a lot of networking code is based on callbacks anyway (see: asyncio.Protocol), and I've had a lot of trouble debugging code that spawn tasks because asyncio code has zero obligation to care about any of the tasks it spawns.
Re:Django 3
by tomchristie on Tuesday December 03, 2019 @02:54PM
(#21696023)
Yo. Two points here.
* You can absolutely stay within structured concurrency constraints using ASGI.
* The ASGI spec doesn’t have anything to do with asyncio. It’s purely an async/await interface - You can build against it just fine using other concurrency backends.