MASTERY

๐Ÿ Python Mastery

Concurrency & performance, four ways โ€” hand-drawn, interactive, example-heavy guides from first principles to scaling under load

๐Ÿ“š The Four Collections
Async / await โšก
Async Guides

The event loop, coroutines, and 10 production async patterns โ€” semaphores, queues, timeouts, circuit breakers, batching, and cancellation.

asyncio Event Loop 10 Patterns
Open Collection โ†’
Threading ๐Ÿงต
Threading Guides

Threads, the GIL, locks and races, pools, and 12 patterns โ€” plus deep-dives on the GIL, threads-vs-processes, and the CPython memory model.

GIL Locks 12 Patterns
Open Collection โ†’
Multiprocessing โš™๏ธ
Process Guides

True parallelism across cores: process basics, pools, IPC & queues, shared memory, pickling, start methods, and CPU parallelism โ€” plus a GIL-and-parallelism deep-dive.

multiprocessing Shared Memory Parallelism
Open Collection โ†’
Optimizations ๐Ÿš€
Optimizations

Scaling Python under load across all three models โ€” pooling, batching, backpressure, limits, caching, resilience, profiling, and worked case studies.

Throughput p99 All 3 Models
Open Collection โ†’
๐Ÿงญ Suggested Path

New to concurrency? Start with Async 101 or Threading 101 โ€” they explain the same core idea (overlap the waiting) from two angles.

Need real CPU parallelism? Go to the Process Guides โ€” multiprocessing is the only model that sidesteps the GIL and uses every core.

Deciding threads vs async vs processes? Read Threads vs Processes vs Async and the GIL deep-dive โ€” they explain why each model exists.

Already shipping and hitting limits? Go straight to Optimizations โ€” start with Optimizations 101 to find your bottleneck, then apply the technique pages.