Nathaniel J. Smith - Trio: Async concurrency for mere mortals - PyCon 2018
Why Hacker News recommends it
Recommended as a clear introduction to structured concurrency and as an explanation of subtle asyncio bugs that Trio avoids.
What it is
Nathaniel J. Smith's PyCon 2018 talk introducing Trio, a Python concurrency library designed around usability and structured concurrency. He live-codes a problem and analyzes pitfalls in other async libraries.
Recommended by 2 HN commenters across 2 different months, 2020 to 2023.
What Hacker News said
Strong rec acidbaseextract · 2021-10 · on “A viable solution for Python concurrency”
The video (or blog post) below is one of the best explanations I've seen about what subtle bugs are easy to make with asyncio, why it's easy to make them, and how the trio library addresses them. But yes, consider alternatives before you pick asyncio as your approach! Talk: [this video] Blog post: [LINK]
Recommends kzuberi · 2023-02 · on “Structured Concurrency Definition”
A useful introduction to the ideas is in Nathaniel's PyCon 2018 talk on trio [1], where he live-codes a solution to a concurrency-spaghetti problem. [1] [this video]
Cites ric2b · 2020-08 · on “Don't trust default timeouts”
Great list. That last suggestion (Multiple requests) can be tough to implement correctly, I think it's usually called Happy Eyeballs: [this video]