You'll unlock the power of concurrent programming in Python. This course demystifies the GIL, threads, and processes, then dives deep into modern asyncio. You will build high-performance, resilient asynchronous pipelines that can handle real-world I/O-bound workloads with ease.
Overview
Syllabus
- Unit 1: Concurrency and the GIL
- Building Your Concurrency Benchmark
- Debug the Benchmarking Framework
- Benchmarking a Hashing Workload
- Benchmarking Concurrent Database Queries
- Unit 2: Asyncio Foundations Explained
- Building Your First Async Producer
- Building the Consumer Coroutine
- Bringing Your Async System Together
- Unit 3: Structured Concurrency Essentials
- Launching Your First Task Group
- Waiting for Queue Work to Complete
- Setting Time Limits for Tasks
- Build Your Concurrent Data Pipeline
- Unit 4: Backpressure and Retry Strategies
- Throttling Fast Producers
- Recovering from Transient Failures
- Implementing Smart Retry Delays
- Handling Multiple Failure Modes