MLWhiz | AI Unwrapped

MLWhiz | AI Unwrapped

The Primer on Asyncio that I Wish I Had

Parallelism and concurrency aren’t the same things. In some cases, concurrency is much more powerful.

Rahul Agarwal's avatar
Rahul Agarwal
Nov 26, 2022
∙ Paid
The Primer on Asyncio that I Wish I Had

Python is an easy language to pick up, but mastering it requires understanding a lot of concepts.

In my last post, I talked about using a multiprocessing module to do parallel processing. Python also offers users the power to work with concurrency using the Asyncio module from version 3.4 forward.

For people who come from a JavaScript background, this concept might not be new, but for people coming from Python 2.7 (yes, that’s me), Asyncio may prove to be hard to understand, as does the difference between concurrency and parallelism. Due to its growing popularity, though, it has really become an important concept to master.

In this post, I want to mitigate some of the confusion around Asyncio, explaining it in the simplest terms possible.

User's avatar

Continue reading this post for free, courtesy of Rahul Agarwal.

Or purchase a paid subscription.
© 2025 Rahul Agarwal · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture