Lynn Root - Advanced asyncio: Solving Real-world Production Problems - PyCon 2019

preview_player
Показать описание
"Speaker: Lynn Root

Everyone’s talking about it. Everyone’s using it. But most likely, they’re doing it wrong, just like we did.

By building a simplified chaos monkey service, we will walk through how to create a good foundation for an asyncio-based service, including graceful shutdowns, proper exception handling, and testing asynchronous code. We’ll get into the hairier topics as well, covering topics like working with synchronous code, debugging and profiling, and working with threaded code. We’ll learn how to approach asynchronous and concurrent programming with Python’s `asyncio` library, take away some best practices, and learn what pitfalls to avoid.

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

This was super useful: I know I have a few TODOs in my asyncio code where they say something like "TODO: this is actually serial and no better than blocking code".

Anonymouspock
Автор

shield() only protects a coro from the cancelation of it's caller being canceled and propagating down

lloydcarothers
Автор

Thanks for this talk. I find this stuff quite challenging...

donha
Автор

This looks amazing, but I'm having trouble following… I'm going to put the whole thing into a diagram I think

RoamingAdhocrat
Автор

Just wanted to leave a note, that AsyncMock is available since Python 3.8, so there is no more need to create coro_mock like at 24:16.

metawake
Автор

Very good and useful content! Thanks a lot!

domingochavez
Автор

How the async program handle the token expiry for oauth. Eg: I have 30 requests running async but first request got the http error meanwhile before handling refresh token we I'll get the all responses.

BharathiFromSouth
Автор

The links for slides dont seem to work.

hariphaneendra
Автор

'gym packed room'? and she is what? a cute, little pony?

fringefringe