Skip to main content

Migrating a Web Application from Flask to FastAPI: Avoiding Pitfalls

Track:
Web technologies
Type:
Tutorial
Level:
intermediate
Room:
Club E
Start:
13:45 on 09 July 2024
Duration:
180 minutes

Abstract

Have you ever had to migrate code from one stack to another? Migrating stacks on an application can be a daunting task. The secret is to keep changes to a small size and watch out for blind copy-and-paste.

Join me in this tutorial to learn the key differences between FastAPI and Flask plus how these differences will affect your stack migration.

Learn by doing it: migrate a simple Flask application to FastAPI. Learn how templates work in each framework, how you can use routers to create more complex applications in both Flask and FastAPI, and finally some tips if you are considering migrating from one to the other and vice-versa.

After this tutorial, you will feel confident to start your stack migrations between these two frameworks.