Overview
Dive into the inner workings of AsyncIO in this illuminating 32-minute PyCon US talk. Demystify the complexities of asynchronous programming in Python by constructing your own event loop from the ground up. Explore core concepts such as event loops, futures, tasks, and coroutines through a hands-on approach. Learn to schedule callbacks, execute tasks and coroutines, and handle network calls as you build a functional event loop. Apply your newfound knowledge by running a FastAPI HTTP server using your custom-built loop. Compare the performance of your creation with industry-standard event loops to gain valuable insights. By the end of this talk, gain a deep understanding of AsyncIO's internal mechanics and the ability to create a basic event loop capable of powering a FastAPI application.
Syllabus
Talks - Arthur Pastel: Demystifying AsyncIO: Building Your Own Event Loop in Python
Taught by
PyCon US