pds-it
['Product detail page','no']
Software development / Python
The illustrations were created in cooperation between humans and artificial intelligence. They show a future in which technology is omnipresent, but people remain at the center.
AI-generated illustration

Developing scalable APIs with Python - with FastAPI and Flask

Online
2 days
German
Download PDF
€ 1.390,-
plus VAT.
€ 1.654,10
incl. VAT.
Booking number
42224
Venue
Online
5 dates
€ 1.390,-
plus VAT.
€ 1.654,10
incl. VAT.
Booking number
42224
Venue
Online
5 dates
Become a certified
Machine Learning Engineer
This course is part of the certified Master Class "Machine Learning Engineer". If you book the entire Master Class, you save over 15 percent compared to booking this individual module.
To the Master Class
In-house training
In-house training just for your employees - exclusive and effective.
Inquiries
In cooperation with
An API doesn't have to be unnecessarily complicated. In this course, you will learn how to develop lean, high-performance and maintainable Python APIs with Flask and FastAPI - practical, scalable and modern.
Contents

This hands-on course teaches how to develop powerful and scalable APIs with Python. The two popular frameworks FastAPI and Flask are compared in order to understand their respective strengths and areas of application. Using hands-on exercises, participants will build their own RESTful APIs, optimize them for performance and scalability and gain a solid understanding of modern API architectures in Python.

 

1. overview and comparison: Flask vs. FastAPI

  • History and objectives of the frameworks
  • Synchronous vs. asynchronous programming model
  • Differences in routing, middleware & dependency injection
  • Community, extensibility & ecosystem
  • When is which framework suitable?

 

2. architecture of modern, scalable APIs

  • Layered Architecture: Routers, Services, Repositories
  • API design principles (REST, stateless, idempotent)
  • OpenAPI / Swagger support out-of-the-box
  • Separation of business/infrastructure logic
  • Caching, rate limiting & authentication

 

3. asynchronous processing & performance tuning

  • Introduction to 
  • async/await
  •  in Python
  • WSGI vs. ASGI - Differences & Implications
  • Advantages of async I/O (e.g. for database access)
  • Use of background tasks & queues
  • Server comparison: Uvicorn, Gunicorn & Hypercorn

 

4. practical development of RESTful APIs

  • Project structuring for Flask & FastAPI
  • Define route, path and query parameters
  • CRUD endpoints using the example of a ToDo app or a store
  • Database connection with SQLAlchemy or Tortoise ORM
  • Integration of external APIs / services

 

5. validation, serialization & documentation

  • Introduction to Pydantic: Typing & Validation
  • Creation of request/response models
  • Automatic OpenAPI documentation (Swagger UI)
  • Use of tags/description texts/examples
  • Efficient data validation

 

6. focus on testability & expandability

  • Unit/integration tests for API endpoints
  • Use test clients for FastAPI/Flask
  • Mocking external dependencies
  • Structuring for better expandability (blueprints/routers)
  • Dependency Injection

 

7. benchmarking & scaling strategies

  • Use tools such as ab, wrk, locust or k6
  • Runtime performance comparison between Flask/FastAPI
  • Scaling with Gunicorn/Uvicorn Workers/Docker/Kubernetes
  • Load balancing/horizontal scaling
  • Health checks/readiness probes

 

8. best practices for production-ready projects

  • Logging/Metrics/Tracing e.g., Prometheus/OpenTelemetry
  • Exception handling (global error handler structured output)
  • Security measures such as HTTPS/CORS/Auth
  • CI/CD Pipelines

 

Requirement: Basic knowledge of Python programming

Your benefit
  • Gain an overview of Flask vs. FastAPI and compare them
  • Understanding the architecture of modern, scalable APIs
  • Learning asynchronous processing and performance tuning
  • Practical development of REST APIs with both frameworks
  • Validate, serialize and document with Pydantic and Swagger
  • Focus on testability and expandability
  • Understanding benchmarking and scaling scenarios
  • Get to know best practices for production-ready API projects
trainers
David Pinezich
Methods

This course creates a sound understanding of the two web frameworks through an optimal mix of short theory blocks, guided exercises, practical examples and hands-on scenarios.

Final examination
Recommended for

This course is ideal for developers who want to develop clean, maintainable and performant interfaces with Python using the two powerful web frameworks FastAPI and Flask.

Start dates and details

Form of learning

Learning form

10.11.2025
Online
Places free
Implementation secured
Online
Places free
Implementation secured
19.3.2026
Online
Places free
Implementation secured
Online
Places free
Implementation secured
30.6.2026
Online
Places free
Implementation secured
Online
Places free
Implementation secured
21.9.2026
Online
Places free
Implementation secured
Online
Places free
Implementation secured
3.12.2026
Online
Places free
Implementation secured
Online
Places free
Implementation secured

The training is carried out in cooperation with an authorized training partner. This partner collects and processes data under its own responsibility. Please take note of the corresponding privacy policy.

Do you have questions about training?
Call us on +49 761 595 33900 or write to us at service@haufe-akademie.de or use the contact form.