Lynn Root - asyncio in Practice: We Did It Wrong

preview_player
Показать описание
asyncio in Practice: We Did It Wrong
[EuroPython 2018 - Talk - 2018-07-26 - Lammermuir]
[Edinburgh, UK]

By Lynn Root

This talk is aimed at those that have at least intermediate experience in Python and have played around with asynchronous Python using asyncio or other libraries. I want the audience to learn from my mistakes! For instance, how easy it is to get into “callback hell” (and how to avoid/get out of it), how to screw up thread safety and deadlock yourself, and making code async but not actually concurrent.

I'll talk through some anti-patterns and best practices that I learned the hard way. This includes proper concurrency, calling coroutines from synchronous code, working with threads and threadsafety, properly shutting down an async programs, and hidden "gotchas".

Рекомендации по теме
Комментарии
Автор

brilliant talk, I'm glad someone finally addresses the lack of proper tutorials about asyncio while providing actual examples that make sense, thanks a lot

VeejayRampay
Автор

Struggling a bit with trying to use asyncio properly, myself, I really liked this talk, and learned a lot from it.

wtpollard
Автор

A talk to come back to. Lots of sound advice.

malteplath
Автор

Very informative. My main question would be how to test async applications since it's now impossible to predict the order in which things might happen

mickavelimckenzy
welcome to shbcf.ru