This repository contains links to some awesome blog posts, books, talks, and docs to get you up and running with Python's asynchronous paradigm. It tries to avoid resources that are outdated or contain deprecated APIs that make the async subspace of Python seem overly complicated, especially for beginners.
- Concepts & Philosophy
- Asyncio Overview
- Asyncio API
- Examples
- Books
- Talks
- Podcasts
- Banters
- Reactive Programming & Microservices
-
Sync vs. Async Python: What is the Difference? -> Differences between sync and async Python, and when async is the right tool to solve your concurrency problems
-
Generators & Coroutines - David Beazly -> This is outdated and uses python 2x but the underlying concept is still relevant
-
Concurrency for People in a Hurry - FastAPI doc -> Simple high-level overview of concurrency in general
-
How the Heck Does Async/Await Work in Python 3.5? -> Good intro to async but slightly outdated
-
Unyielding - Why Threads Are Bad? -> Glyph, the creator of the Twisted projects argues why writing multi-threaded code correctly is hard
-
Nathaniel Smith - Notes on structured concurrency, or: Go statement considered harmful -> Nataniel Smith argues that Dijkstra's strurctured programming philosophy can show us the correct way of doing concurrent I/O programming
-
Nathaniel Smith - Timeouts and Cancellation for Humans -> Nathaniel Smith ponders on the ways timeout and cancellation can be handled across different concurrency primitives
-
Nathaniel Smith - Some Thoughts on Asynchronous API Design in a Post-Async/Await World -> Conundrums of crafting causality-compliant, coroutine-chauffeured concurrency-contraptions—catering callback compliance
-
Async IO in Python: A Complete Walkthrough -> Start grasping the bare-minimum concepts from here.
-
Asyncio for the Working Python Developer -> Getting your hands dirty with the async features.
-
Calling Sync from Async & Vice Versa -> Fantastic article on the gradual adoption of Asyncio.
-
Guide to Concurrency in Python with asyncio -> Asyncio's create_task, ensure_future, wait, wait_for, gather APIs.
-
Waiting in Asyncio -> Difference between gather, wait, wait_for, create_task, as_completed, etc.
-
Latency in Asynchronous Python -> Using asyncio.Queue(maxsize=1) to run blocking code.
-
Differences Among Asyncio ensure_future, create_task & Simple Coroutines
-
Asynchronous I/O Examples -> Self contained examples of how to perform a few common asynchronous I/O tasks
-
Asyncio by Examples -> A dense example-driven overview of the Asyncio APIs
-
Simple IPv4 TCP Scanner Leveraging Asyncio -> A complete example of using asynchronous producer-consumer pattern to create a simple TCP scanner
-
Python Threading Tutorial: Run Code Concurrently Using the Threading Module -> Corey Schafer explains how to use the built-in threading module in Python to achieve concurrency
-
Python Multiprocessing Tutorial: Run Code Parallelly Using the Multiprocessing Module -> Corey Schafer explains how to use the built-in multiprocessing module in Python to achieve parallelism
-
Understanding Async and Await in Python - Jonathan Slenders -> A succinct introduction to asyncio in Python.
-
Raymond Hettinger - Keynote on Concurrency - PyBay 2017 -> Raymond Rettinger mostly talking about threads, queues, and processes.
-
Robert Smallshire - Coroutine Concurrency in Python 3 with asyncio -> Gradually building up the intuition for coroutine driven I/O.
-
David Beazley - Fear and Awaiting in Async: A Savage Journey to the Heart of the Coroutine Dream -> Reasoning asynchronous programming from first principles.
-
Import Asyncio - YouTube Series -> Łukasz Langa's asyncio videos—from basics to application.
-
Yury Selivanov - High Performance Networking in Python -> The talk covers the async/await syntax in Python, asyncio library and ecosystem around it, and ways to use them for creating high performance servers.
-
Yury Selivanov - Async/Await in Python 3.5 and Why It Is Awesome -> An overview of asyncio's high-level APIs
-
Yury Selivanov - Asyncio: What's Next - PyBay2018 -> Another walkthrough of asyncio APIs and speculations on future improvements.
-
Yury Selivanov - Asyncio in Python 3.7 and 3.8 || A Guide to Asynchronous Programming in Python with Asyncio -> Asyncio's past, present and future.
-
Build Your Own Async - YouTube Screencast -> David Beazley's takes you through building your own asyncio-like library.
-
John Reese - Thinking Outside the GIL with AsyncIO and Multiprocessing - PyCon 2018 -> Superpowered asyncio with multiprocessing.
-
Nathaniel J. Smith - Trio: Async Concurrency for Mere Mortals - PyCon 2018 -> Structured concurrency with trio.
-
Kavya Joshi - A Tale of Concurrency Through Creativity in Python: A Deep Dive Into How Gevent Works -> Implicit cooperative multitasking via Gevent.
-
Understanding the Python GIL -> David Beazly explains the behavior of threads in Python why it yields concurrency rather than parallelism.
-
The Other Async (Threads + Async = ❤️) -> David Beazley builds a thread and async compatible queue from scratch.
-
Łukasz Langa – Thinking in Coroutines -> Understanding event loop, task cancellation, and exception handling in Asyncio.
-
John Reese - Asyncio All the Things with Omnilib -> Making the fundamental toolsets async in Python.
-
David Beazley - Python Concurrency with Curio -> David Beazley explains the problems with Asyncio and how he built Curio by reasoning from the first principle.
-
Nathaniel Smith - Simplifying Python's Async with Trio -> Nathaniel Smith talks about why cancellation and exception handling can be difficult in background tasks, and how Trio attempts to solve that.
-
Lukasz Langa - AsyncIO + Music, Origins of Black, and Managing Python Releases -> Lukasz Langa talks about analog synthesizers, AsyncIO and the Black code formatter.
-
I Don't Understand Asyncio -> Armin Ronacher complains about baffling complexities in the design decisions of the asyncio module.
-
Hackernews Discourse - I Don't Understand Asyncio -> People Complaining About the Design Decisions behind the Asyncio API.
-
Reddit Discourse - I Don't Understand Asyncio -> Armin Ronacher's conversation with a Python core developer.
-
I'm Not Feeling the Async Pressure -> Armin Ronacher points out how Asyncio API overlooks the complexities imposed by backpressure.
-
Hackernews Discourse - I'm Not Feeling the Async Pressure -> Discussion on whether language implementation should deal with backpressure or not.
-
Hackernews Discourse - People Comparing Python's Coroutine Driven Concurrency with Golang's Actor Pattern -> People seems to hate asyncio's Twisted inspired design philosophy in general.
-
Hackernews Discourse - The Bare Minimum Asyncio -> One Guy's attempt to cover the entire high-level API surface of asyncio in a single Hackernews comment.
- Redis Streams Featuring Salvatore Sanfilippo - Redis Labs -> Introduction to the Redis streams data structure and how can it be used as a safer alternative to Pub-Sub.