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 