FastAPI ASGI పై నడుస్తుంది, కాబట్టి ఒక request ఒక async pipeline గుండా ప్రయాణిస్తుంది: ASGI server దానిని స్వీకరిస్తుంది, middleware దానిని చుట్టుముడుతుంది, router ఒక path ను సరిపోల్చుతుంది, dependencies పరిష్కరించబడతాయి, మీ path operation నడుస్తుంది, మరియు return value response గా serialize చేయబడుతుంది.
దశలు
uvicorn (ASGI server)
│ scope + receive/send
▼
ASGI / Starlette middleware ── (CORS, GZip, custom)
▼
Routing ── method + సరిపోల్చు → operation
▼
Dependencies (Depends) ── -deps, security, -setup పరిష్కరించు
▼
Path operation 