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

"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.
Slides can be found at: speakerdeck.com/pycon2019 and github.com/PyCon/2019-slides"

Пікірлер: 17

  • @Anonymouspock
    @Anonymouspock5 жыл бұрын

    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".

  • @johnmangino3925
    @johnmangino39254 жыл бұрын

    This was excellent. Thank you.

  • @donha475
    @donha4754 жыл бұрын

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

  • @domingochavez14
    @domingochavez143 жыл бұрын

    Very good and useful content! Thanks a lot!

  • @IgorLubimov
    @IgorLubimov5 жыл бұрын

    direct link to slides speakerdeck.com/roguelynn/advanced-asyncio-solving-real-world-production-problems

  • @heedwin6935
    @heedwin69354 жыл бұрын

    what an awesome talk!

  • @lloydcarothers9776
    @lloydcarothers97765 жыл бұрын

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

  • @RoamingAdhocrat
    @RoamingAdhocrat3 жыл бұрын

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

  • @metawake
    @metawake2 жыл бұрын

    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.

  • @BharathiFromSouth
    @BharathiFromSouth4 жыл бұрын

    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.

  • @vhphan19

    @vhphan19

    3 жыл бұрын

    Did you managed to solve this issue?

  • @BharathiFromSouth

    @BharathiFromSouth

    3 жыл бұрын

    @@vhphan19 no

  • @hariphaneendra2705
    @hariphaneendra27055 жыл бұрын

    The links for slides dont seem to work.

  • @brawndojo

    @brawndojo

    5 жыл бұрын

    I'm not involved in the uploading (just an attendee) but it looks like the slides aren't up yet, though based on the pattern from previous years, these will be accurate URLs once they're up.

  • @hamidr9194

    @hamidr9194

    5 жыл бұрын

    It is now (at 1:48) speakerdeck.com/roguelynn/advanced-asyncio-solving-real-world-production-problems

  • @fringefringe7282
    @fringefringe72822 жыл бұрын

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

Келесі