We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Demystifying AsyncIO: Building Your Own Event Loop in Python

Formal Metadata

Title
Demystifying AsyncIO: Building Your Own Event Loop in Python
Title of Series
Number of Parts
131
Author
Contributors
License
CC Attribution - NonCommercial - ShareAlike 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and non-commercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
**AsyncIO** has emerged as a vital tool in Python's ecosystem, particularly in web development, IO-bound tasks, and network programming. However, its internal mechanics often remain obscure, even to seasoned Python developers. This talk aims to demystify AsyncIO by guiding you through creating your own event loop in Python, culminating in running a FastAPI application with it. In this talk, we’ll build an event loop from scratch in Python, capable of running an HTTP server through a FastAPI application. **Plan:** - **Introduction to AsyncIO** - **Core Concepts:** Deep dive into Event loop, Futures, Tasks, and coroutines - **Hands-On Building:** Constructing an event loop from scratch - Scheduling callbacks - Executing tasks and coroutines - Handling network calls - **Practical Application:** Running a FastAPI HTTP server with our loop - **Performance Insights:** Comparing our event loop with the fastest ones By the end of this talk, you'll be able to understand the internal workings of AsyncIO and create a basic event loop capable of running a FastAPI application.