Asynchronous Python: Boost Performance and Efficiency for Real-World Apps
1h 4mAdvanced2021-09-07
Authors

Ronnie Sheer
Software Developer and Instructor
Course details
If you were cooking a multicourse meal, would you prep one thing at a time? Put bread in the oven, wait. Warm the soup on the stove, wait. Then the main course. Wouldn’t it be more efficient to spend time prepping other food instead of waiting on tasks that don’t need your immediate attention? In the same way that having multiple things happen at the same time leads to faster meal prep, having multiple things happen in Python—or using an asynchronous approach—can be leveraged to boost application performance and make your Python programs extremely efficient. In this course, Ronnie Sheer gives you the tools to use async Python to solve real-world problems, gain familiarity with the async Python ecosystem, complete challenges with working examples, and become a more attractive candidate for engineering positions. If you’re an experienced Python user looking to take async Python from theory to practice, check out this hands-on course.
Skills covered
Software Design PatternsAdvancedPythonProgramming LanguagesOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Supercharging Python async
- 02 - What you should know
- 03 - Setting up locally or using Gitpod
1. Understanding Asynchronous Programs
- 04 - What makes programs slow and when async execution can help
- 05 - How async works (async await)
- 06 - How async Python differs from other languages
- 07 - Async sleep and gather
- 08 - Challenge - Sleep five
- 09 - Solution - Sleep five
2. Async Web Clients with aiohttp
- 10 - Supercharging requests
- 11 - Async WebSocket client
- 12 - Challenge - Write the response to a JSON file
- 13 - Solution - Write the response to a JSON file
3. Storage and Caching with aioredis
- 14 - How Redis shines in modern applications
- 15 - Getting started with aioredis
- 16 - Challenge - Redis chat
- 17 - Solution - Redis chat
4. Modern Servers with ASGI
- 18 - What is ASGI
- 19 - ASGI landscape
- 20 - Chat app using Quart
- 21 - Async Django and Django Channels at a glance
- 22 - Challenge - Store feed data in Redis
- 23 - Solution - Store feed data in Redis
Conclusion
- 24 - Next steps