FastAPI na gudana a kan ASGI, don haka request na tafiya ta cikin async pipeline: ASGI server na karɓarsa, middleware na naɗe shi, router na daidaita path, sannan ana warware dependencies, path operation ɗinka na gudana, sai a serialize ƙimar da aka mayar zuwa cikin response.
Matakan
uvicorn (ASGI server)
│ scope + receive/send
▼
ASGI / Starlette middleware ── (CORS, GZip, na musamman)
▼
Routing ── daidaita method + → operation
▼
Dependencies (Depends) ── warware -deps, security, -setup
▼
Path operation 