Ritheann FastAPI ar ASGI, mar sin taistealaíonn request trí phíblíne async: glacann an ASGI server leis, fillteann middleware é, meaitseálann an router path, réitítear na dependencies, ritheann do path operation, agus serialize-áiltear an luach a fhilltear isteach sa response.
Na céimeanna
uvicorn (ASGI server)
│ scope + receive/send
▼
ASGI / Starlette middleware ── (CORS, GZip, saincheaptha)
▼
Routing ── meaitseáil method + → operation
▼
Dependencies (Depends) ── éitigh sub-deps, security, yield-setup
▼
operation function ── ritheann do handler
▼
Response model ── validate + serialize go JSON
▼
tasks ── rith tar éis an response sheoladh
▼
Response ──▶ client
