~/talk

Quickly Creating a Production-Ready API Using FastAPI and Docker…Explained with Memes

Talkat DockerCon 2022 · 2022-05-09..05-10· [python, developer-experience]
slides:none on file

FastAPI builds a production-ready Python API in minutes using standard type hints, Pydantic for data models, Starlette for async web handling, and Docker + Uvicorn for deployment; code shown is a 5-line app, a simple Dockerfile and an alternative official image that starts multiple workers. It enforces automatic validation with exact error locations, generates interactive OpenAPI docs and request examples, and hits ~15k req/s in benchmarks while running on projects from Microsoft to Netflix with ~40k GitHub stars.

AI-written summary · about

  1. 0:00Start
  2. 2:42Based on standards - for free
  3. 10:29Basic FastAPI app with body-docs
  4. 15:46JSON array of objects in body - invalid data
  5. 17:44JSON array of objects in body - validation
  6. 19:37Type checks
  7. 20:07All based on standard Python types
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.