Member-only story

Async Programming in Python

Rajan Sahu
4 min readFeb 20, 2024

--

My article is for everyone! Non-members can click on this link and jump straight into the full text!!

In recent years, you may have noticed a buzz around “async programming” in the Python community. But what exactly is it, and why is everyone talking about it? In this blog post, we’ll unravel the mysteries of async programming in Python in a way that’s accessible even if you’re new to programming.

What is async programming?

  • In simple terms, async programming in Python allows your program to do multiple things at once, even though it’s typically running on a single processor.
  • Instead of waiting for each task to finish before moving on to the next one, async programming lets your program pause and switch to another task while it’s waiting for something to happen, like reading data from a file or waiting for a network response.
  • This helps make your program more efficient and responsive, especially when dealing with tasks that involve waiting for external resources.

You heard this example !!

Imagine you’re at a busy restaurant, waiting for your food order. You know it’s going to take a while, so what do you do? You don’t just sit there staring at the kitchen door, right? Instead, you might chat with your friends, check your phone…

--

--

Rajan Sahu
Rajan Sahu

Written by Rajan Sahu

Backend and Data Engineer by Day; Teacher, Friend and Content-Writer by night.

No responses yet