FastAPI는 ASGI 위에서 동작하므로, 요청은 비동기 파이프라인을 통과합니다. ASGI 서버가 요청을 받고, middleware가 감싸고, router가 path를 매칭하고, 의존성이 해결되며, 여러분의 path operation이 실행되고, 반환값이 response로 직렬화됩니다.
단계
lua
uvicorn (ASGI server)
│ scope + receive/send
▼
ASGI / Starlette middleware ── (CORS, GZip, custom)
▼
Routing ── method + 매칭 → operation
▼
Dependencies (Depends) ── -deps 해결, security, -setup
▼
Path operation 