Learnings from migrating a Flask app to FastAPI

Orell Garten

Thursday 16:15 in Titanium3

Building HTTP APIs has become a normal part of the work as a software or data engineer within the last 10 to 15 years. In the Python ecosystem Flask was the only option to build an HTTP API for many years. After its initial release in 2018 FastAPI quickly became a serious alternative to build such APIs with Python.

In this talk I will share my experiences from migrating an existing HTTP API built with flask to a FastAPI-based API.

We will discuss the following topics:

  • Why did we migrate at all?
  • Modeling data for input and output
  • Async is overrated
  • Problems you will encounter

The talk will show you the practical differences between developing APIs with FastAPI or Flask.

Orell Garten

Freelance backend software and data engineer. I try to make data behave the way it needs to by finding data quality problem and building custom software solutions to automate data processing.