Module 10 of 10

Async & Deployment

Lessons

About This Module

You've built, tested, and automated your Python code. The final step is making it fast and getting it online. Many real programs spend most of their time waiting on networks, databases, and files, and asynchronous programming lets them do other work during that wait.

You'll start with asyncio: coroutines, the event loop, and the async/await syntax for writing concurrent code. Then you'll learn Docker, which packages your app and everything it needs into a container that runs the same way on any machine, and see how to containerize a Python web API. Finally, you'll deploy a container to production.

Once you finish this module, you're ready to put everything together in the Projects section.

Lessons

4 videos
01

Asyncio in Python: Concurrent Programming Tutorial

How asynchronous Python works: async and await, running tasks concurrently, making API calls without blocking, and turning slow synchronous code into concurrent code.

02

Docker Tutorial for Beginners

What Docker is and why it matters: images and containers, essential commands, Docker Compose, volumes, and building your own image.

03

Creating a FastAPI Application and a Docker Container

How to build a small FastAPI app and package it into a Docker container, step by step.

04

Moving and Deploying the Container in Production

How to take your container from your machine to a production server and run it there.