Speed Up Python With Concurrency

Christopher Trudeau
Christopher Trudeau 15 Lessons 1h 45m Updated advanced best-practices

Concurrency is the act of having your computer do multiple things at the same time. If you’ve heard a lot of talk about asyncio being added to Python but are curious how it compares to other concurrency methods or are wondering what concurrency is and how it might speed up your program, you’ve come to the right place.

In this course, you’ll learn the following:

  • How I/O bound programs are effected by latency
  • Which concurrent programming patterns to use
  • What the differences are between the Python concurrency libraries
  • How to write code that uses the threading, asyncio, and multiprocessing libraries

Sample code was tested using Python 3.13. Since much of the asyncio library has been in flux since Python 3.4, it’s recommended to use at least Python 3.9 for the asyncio portions of the course.

What’s Included:

  • 15 Lessons
  • Video Subtitles and Full Transcripts
  • 2 Downloadable Resources
  • Accompanying Text-Based Tutorial
  • Interactive Quiz to Check Your Progress
  • 3 Hands-On Coding Exercises
  • Q&A With Python Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

About Christopher Trudeau

Christopher has a passion for the Python language and writes, records, and podcasts for Real Python. He is a consultant who helps advise organizations on how to improve their technical teams.

» More about Christopher

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

Avatar image for andrewodrain

andrewodrain

I always come out of your lectures with an extremely deep understanding of the topics you present. After seeing concurrency in action, I think I am addicted. Excellent work Christopher! Thank You!

Avatar image for danP

danP

Awesome lesson, with the added benefit of finally understanding what the GIL actually does!

Avatar image for Pavlo Kurochka

Pavlo Kurochka

Excellent course. I finally got a comprehensive and current overview of the options and the reasoning behind choosing one over the other. Code samples are great too.

Avatar image for ldr3tlogy

ldr3tlogy

Excellent summary, easy to follow the producer, worker, consumer analogy, and various combinations of each, architecting different concurrent algorithms, thereby improving throughput.

← Browse All Courses