~/talk

FastAPI: Hitting the Performance Jackpot

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [python, web-performance]
links:none on file
slides:none on file

FastAPI’s speed comes from three concrete ingredients: async I/O via uvicorn + uvloop (uvloop runs 2–4× faster and hits ~1,000 req/s for 1KB echoes), a thin, high‑performance foundation Starlette is ~20% faster than FastAPI in microbenchmarks, and Rust‑powered validation pydantic v2 (rewritten in Rust, ~5× faster than v1) driving request/response parsing and OpenAPI generation. Examples include echo‑server and framework comparisons showing Rust frameworks like Rocket remain faster, and the stack stays pluggable for different ORMs and DB connection strategies.

AI-written summary · about

  1. 0:00Introduction to Fast API
  2. 3:59Asynchronous Web Servers
  3. 6:30Starlet and FastAPI
  4. 9:44Data Validation with Pydantic
  5. 16:25Pydantic Features and Use
  6. 20:08Flexibility and Architecture
  7. 22:14Q&A and Conclusion
~/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.