FastAPI hufanya kazi kwenye ASGI, kwa hivyo request husafiri kupitia pipeline ya async: ASGI server huipokea, middleware huifunika, router hulinganisha path, dependencies hutatuliwa, path operation yako huendeshwa, na thamani inayorejeshwa hubadilishwa (serialize) kuwa response.
Hatua
uvicorn (ASGI server)
│ scope + receive/send
▼
ASGI / Starlette middleware ── (CORS, GZip, custom)
▼
Routing ── linganisha method + → operation
▼
Dependencies (Depends) ── tatua -deps, security, -setup
▼
Path operation 