Like IO operations for some of the tasks Asynchronous programming is a great choice. Raman Bazhanau gave a good understanding and explained with great examples here. It’s a long read but a very good one to get an understanding of Asynchronous programming & asyncio.