What does Starlette really do for FastAPI?
summary
Starlette supplies most runtime plumbing behind FastAPI: background tasks (Starlette implements the task runner; FastAPI only injects the BackgroundTasks parameter), the TestClient used in examples and tests, WebSocket handling, routing/path converters and base HTTP middleware. FastAPI adds type-hint introspection and automatic OpenAPI docs from Python types, while Starlette includes a simpler schema generator (incomplete and seldom used). Examples and code snippets in the talk show identical Starlette implementations that FastAPI merely re-exports or wraps.
AI-written summary · about
chapters (9)
- 0:00Introduction to FastAPI
- 2:20Background tasks in FastAPI
- 6:52Testing with TestClient
- 10:36Websockets and Async API
- 13:57OpenAPI schema generation
- 16:59Middleware and path handling
- 22:18Why use FastAPI?
- 24:05Pydantic V2 update
- 25:47Q&A and conclusion








