FastAPI Resources and Book Recommendations

Introduction

You have built typed APIs with Pydantic, SQLAlchemy, JWT, tests, and deployment patterns. Keep growing by shipping one real service and reaching for official references when behavior surprises you. This chapter curates documentation, books, and Hello Code tracks that pair naturally with FastAPI.

Prerequisites

  • Progress through this track (or equivalent FastAPI experience)
  • At least one project chapter attempted (recommended)

How to Keep Learning

  1. Complete Todo API project or REST CRUD end-to-end
  2. Break something safely—wrong CORS, expired JWT, missing migration
  3. Fix with Troubleshooting and logs
  4. Run pytest and pip audit in CI before deploy

Reading without running leaves gaps in validation, auth, and deploy timing.

Official References

ResourceBest for
FastAPI documentationAuthoritative tutorials and API reference
Pydantic v2 docsSchemas, validators, settings
Starlette docsMiddleware, requests, WebSockets
SQLAlchemy 2.0 docsORM, sessions, queries
Uvicorn docsASGI server options
Alembic docsMigrations

Community guides around FastAPI

  • Official FastAPI tutorial (online)—start here after this track
  • Blog posts and video courses on FastAPI + React—verify Pydantic v2 and SQLAlchemy 2.0

Architecture Patterns with Python (Percival & Gregory)

  • Repository pattern, service layer, domain modeling—framework-agnostic
  • Helps when FastAPI projects outgrow fat route files

High Performance Python (Gorelick & Ozsvald)

  • Profiling and concurrency when APIs need tuning

Pick one deep resource and apply it to your Todo or Items project—not three at once.

Pair With Hello Code Tracks

TrackConnection
PythonSyntax, pip, type hints
FlaskWSGI, templates, sessions—compare stacks
MySQLSchema design, SQL debugging
RedisCaching and rate limits
GitCI, collaboration
LinuxServer ops
NginxReverse proxy, TLS
Spring BootEnterprise JVM APIs, JWT compare
MongoDBDocument store with FastAPI lifespan pattern

Framework Choice Recap

GoalTrack
JSON API, OpenAPI, asyncFastAPI (this track)
Server-rendered HTML, formsFlask
Large CMS, built-in adminDjango (external docs)

Many teams use Flask for admin HTML and FastAPI for public API in the same organization.

Advanced Topics (Next Steps)

TopicWhere to go
Async SQLAlchemyAsync database chapter
Task queuesCelery, RQ—Flask background tasks
OpenAPI codegenopenapi-generator, orval for TypeScript clients
ObservabilityOpenTelemetry, Sentry, structured JSON logs
KubernetesHelm after Docker chapter
OAuth2 social loginAuthlib, external IdP docs

Community

  • FastAPI GitHub — releases and discussions
  • Pydantic GitHub — validation edge cases
  • Pin versions in requirements.txt; read changelogs before major upgrades

Tip

Upgrade in a Branch

Run full pytest and manual /docs smoke test after bumping FastAPI or Pydantic major versions.

FAQ

FastAPI vs Flask for new API?

FastAPI if you want types and OpenAPI first; Flask if team already standardized on Flask extensions.

Learn Django after FastAPI?

Yes if you need admin, ORM batteries, and monolith—different product shape.

Certification?

No mainstream FastAPI cert—portfolio APIs matter more for juniors.

Official docs enough?

Yes for daily work—this track adds Hello Code cross-links and deploy checklist.

Chinese planning outline?

frontend/gen_article_plan/fastapi.md.

/category-logos/fastapi.png in category_meta_info.json.

Report improvements?

Git fork workflow.