Skip to main content
Loading page…
Python Mastery
Chapter 53
Lesson 4 of 4
Deploying a Python App
Contents
Notes
Tutor
Concept
uvicorn vs Gunicorn: Concurrency Models
Loading activity…
Previous
1 / 11
Continue
Contents
Notes
Discussion
Tutor
25 min
11 activities
0 of 11 done
In this lesson
1
uvicorn vs Gunicorn: Concurrency Models
2
Environment-Based Config with Pydantic Settings
3
Health Checks and Graceful Shutdown
4
Structured Logging for Production
5
12-Factor Config — Building on Earlier Modules
6
12-Factor Principles for Python Services
7
Validate a 12-Factor Config Loader
8
Liveness vs. Readiness
9
12-Factor Principles: Config vs. Process
10
Zero-Downtime Deployments: The Rolling Update Pattern
11
Production Deployment Checklist
Objectives
Learner can explain the difference between uvicorn and gunicorn and when to use each
Learner can configure a FastAPI app with environment-based config using Pydantic Settings
Learner can implement a health check endpoint that is useful for load balancers
Learner can configure structured logging for production
Learner can explain the 12-factor principles relevant to Python web services
Learner can compare hosting options (containers, PaaS) and their trade-offs
Chapter 53 · Packaging, Docker & Deployment
Modern Project Tooling: uv, Ruff & pre-commit
Docker for Python
CI/CD with GitHub Actions, uv and Trusted Publishing
Deploying a Python App
Previous: CI/CD with GitHub Actions, uv and Trusted Publishing
Next: String & Array Katas