~/talk

Marrying Django and FastAPI 💍

Talkat Django Day Copenhagen 2024 · on Friday, 2024-10-04· [django]
slides:none on file

FastAPI runs alongside a synchronous Django process on the same host, sharing the same database and Django models so migrations and the admin remain intact; repositories isolate all ORM access and convert Django instances into Pydantic domain models, letting FastAPI handle async webhooks and high‑IO uploads. The team uses domain‑driven structure, keeps tests synchronous at repository level and async at route level, uses a single sync_to_async adapter point, and migrates with zero downtime. FastAPI adoption rises from 14% to 25% (2021→2023).

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:56What is FastAPI and why async
  3. 7:12Existing architecture and challenges
  4. 9:41Migrating to Django async
  5. 11:53Marrying Django and FastAPI
  6. 14:25Compromises in the marriage
  7. 18:24Domain-driven design approach
  8. 22:39Repository-level compromises
  9. 24:53Technology choice is not binary
  10. 26:40Q&A session
~/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.