Overview
Explore the fundamentals of coroutine-based concurrency in Python 3 through this comprehensive ACCU Conference talk. Dive into the resurgence of coroutines as a powerful tool for building highly concurrent applications without the complexities of threads and locks. Learn how to construct a simple concurrency framework from scratch, then transform it into real Python 3 code using async and await features along with the asyncio library. Discover essential abstractions like futures, tasks, transports, and asynchronous streams, and see their practical applications. Gain insights into cooperative multitasking, understand the differences between concurrency and parallelism, and explore concepts such as asynchronous I/O, task scheduling, and coroutine contagion. Perfect for both newcomers to coroutine-based concurrency and those seeking a deeper understanding of asynchronous programming in Python.
Syllabus
Introduction
Coroutine concurrency in Python
Serial IO
Python Books
Structure
Python
The problem
Concurrency vs Parallelism
Preemptive multitasking
Async IO
Whats next
Work
Search
Async Search
Task
Task Scheduler
Prime
Print Matches
Prime Lucas
Repetitive Message
Rename
Reorder
Create Scheduler
Coroutines are contagious
Prime function
Bear yield
Code contagious
Extract Coroutine
Refactoring
Sync Search
Sink
Sleep
await
async
terminology
futures
Taught by
ACCU Conference