AI-powered learning
Save this course
The Hacker's Guide to Scaling Python
Learn about Python's scalability, concurrency, and distribution via CPU scaling, event loops, queue-based distribution, and building REST APIs to optimize and deploy high-performance applications.
4.5
99 Lessons
2 Projects
9h
Join 2.9 million developers at
Join 2.9 million developers at
Learning Roadmap
1.
Scaling
Scaling
Step through scaling Python applications using multithreading, distributing systems, and service-oriented architecture.
2.
CPU Scaling
CPU Scaling
Walk through CPU scaling techniques using threads, processes, futures, and optimization tools.
3.
Event Loops
Event Loops
7 Lessons
7 Lessons
Work your way through event loops, asynchronous code, and efficient network management using asyncio.
4.
Functional Programming
Functional Programming
5 Lessons
5 Lessons
Grasp the fundamentals of functional programming in Python, its toolkit, and practical applications.
5.
Queue-Based Distribution
Queue-Based Distribution
10 Lessons
10 Lessons
Dig into Python's queue-based distribution, focusing on RQ and Celery for scalability.
6.
Designing for Failure
Designing for Failure
5 Lessons
5 Lessons
Tackle exception handling, retry strategies, and Tenacity for robust Python applications.
8.
Lock Management
Lock Management
9 Lessons
9 Lessons
Step through managing locks to ensure safe access and prevent data corruption.
9.
Group Membership
Group Membership
9 Lessons
9 Lessons
Unpack the core of managing group membership in distributed systems using the Tooz library.
10.
REST Interfaces
REST Interfaces
11 Lessons
11 Lessons
Master the steps to build scalable and efficient REST APIs with Python frameworks.
11.
Deploying on PaaS
Deploying on PaaS
7 Lessons
7 Lessons
Break down the steps to deploying Python applications on various PaaS platforms.
12.
Testing Distributed Systems
Testing Distributed Systems
5 Lessons
5 Lessons
Map out the steps for testing, environment setup, and service management in distributed systems.
13.
Caching
Caching
7 Lessons
7 Lessons
Investigate caching to enhance Python app performance, covering local, memoization, and distributed methods.
14.
Performance
Performance
8 Lessons
8 Lessons
Master the steps to optimize Python performance through profiling, disassembling code, and efficient memory use.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Complete more lessons to unlock your certificate
Developed by MAANG Engineers
ABOUT THIS COURSE
Python, in all of its greatness, is often dismissed when needing to write performant and distributed applications. It’s considered to be slow and not suited for the task. In this course, you will find that with the right implementation of Python, you can write applications that scale horizontally, perform well, and are distributed.
To kick things off, you’ll learn about CPU scaling, concurrency, and event loops, all of which are crucial for implementing a distributed system. After that, you’ll move on to queue-based distribution, lock management, and group memberships, which are fundamental concepts for maintaining availability and consistency in distributed applications.
In the last half, you’ll learn how to build a REST API, how to deploy your app to a PaaS, and how to optimize your application's performance.
By the end of this course, you’ll be more productive with Python, you’ll be able to write faster applications that are distributed, and you’ll have a great new skill that is highly coveted.
ABOUT THE AUTHOR
Julien Danjou
Open Source hacker for the last 20 years, I contribute and maintain a lot of Python code and libraries.
Trusted by 2.9 million developers working at companies
A
Anthony Walker
@_webarchitect_
E
Evan Dunbar
ML Engineer
S
Software Developer
Carlos Matias La Borde
S
Souvik Kundu
Front-end Developer
V
Vinay Krishnaiah
Software Developer
Built for 10x Developers
No Passive Learning
Learn by building with project-based lessons and in-browser code editor


Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go


Future-proof Your Career
Get hands-on with in-demand skills


AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"




MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies


Free Resources