FastAPI berjalan di atas ASGI, jadi sesuatu request bergerak melalui satu pipeline async: ASGI server menerimanya, middleware membalutnya, router memadankan path, dependencies diselesaikan, path operation anda dijalankan, dan nilai pulangan diserialize menjadi response.
Peringkat-peringkatnya
uvicorn (ASGI server)
│ scope + receive/send
▼
ASGI / Starlette middleware ── (CORS, GZip, custom)
▼
Routing ── padankan method + → operation
▼
Dependencies (Depends) ── selesaikan -deps, security, -setup
▼
Path operation 