Migrating a Web Application from Flask to FastAPI: Avoiding Pitfalls

  • 2024-07-09 , Club E
  • 2024-07-09 , Club E

All times in Europe/Prague

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.

Checkout slides and code here: https://jtemporal.com/flask-to-fastapi


Expected audience expertise:

Intermediate

Jessica Temporal is a Sr Developer Advocate at Okta and co-founder of the first Brazilian data science podcast, Pizza de Dados. She’s also a LinkedIn Learning instructor. Creator of GitFichas, a git study cards collection, and is a GitHub Star. Jess also authored "The Big Git Microbook". She is part of the Pyladies and in her free time, she knits, plays video games, and tries to learn to rollerblade.