FastAPI ASGI वर चालते, त्यामुळे request एका async pipeline मधून प्रवास करते: ASGI server ते स्वीकारतो, middleware ते गुंडाळते, router एका path शी जुळवतो, dependencies resolve केल्या जातात, तुमचे 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 resolve करा
▼
Path operation 