Async Techniques and Examples in Python Transcripts
Chapter: async and await with asyncio
Lecture: Python async landscape: asyncio

Login or purchase this course to watch this video and the rest of the course contents.
0:00 We're going to start our actual exploration and programming examples of concurrency in Python without threads and without sub-processes.
0:10 That's right, we're going to do concurrent programming no threads, no sub-processes. It may sound impossible. It certainly sounds kind of weird, right?
0:18 We think of parallel programming as involving multiple threads or maybe multiple processes in the case of a sub-process.
0:25 But we're going to see that there's a new, fancy way that is mostly focused on scalability that does not at all involve threads in Python.
0:33 It is my favorite type of concurrent programming in Python by far. Of course I'm speaking about AsyncIO. AsyncIO is what you might call
0:42 cooperative concurrency or parallelism. The programs themself state explicitly "Here's a part where I'm waiting you can go do something else.
0:51 Here's another part where I'm waiting on a web request or a database you can go do other work right then, but not other times."
0:58 With threads we don't have this certainly with multi-processing in Cython we don't have this. So where are we on this landscape?
1:03 We're in this green AsyncIO area and of course, Trio and Unsync are built on top of that. So, I kind of highlighted that as well
1:10 but we're not going to talk explicitly about those yet. This is the foundation of those libraries.

Talk Python's Mastodon Michael Kennedy's Mastodon