New:Embedded & IoT Bootcamp
FastAPI

Data & Databases

4 tutorials organised into focused series and standalone lessons.

0 series 4 standalone lessons Back to FastAPI

Data & Databases tutorials

Read in order or jump to the topic you need.

Tutorial2026-06-13

Connecting to SQL Databases (SQLAlchemy, Tortoise ORM)

Connect FastAPI to PostgreSQL/MySQL with SQLAlchemy async, manage sessions, define models, run Alembic migrations, and explore Tortoise ORM as an alternative

Web Development / Backend / FastAPI / Data & Databases

FastAPISQLAlchemy
Tutorial2026-06-13

Using NoSQL (MongoDB, Redis)

Integrate MongoDB with Motor (async driver), Redis with redis-py, perform CRUD, implement caching patterns, and decide between SQL and NoSQL

Web Development / Backend / FastAPI / Data & Databases

FastAPIMongoDB
Tutorial2026-06-13

Async Database Queries

Understand why async matters for FastAPI, use SQLAlchemy async sessions, await query execution, manage connection pools, and avoid the N+1 problem

Web Development / Backend / FastAPI / Data & Databases

FastAPIAsync
Tutorial2026-06-13

CRUD Operations with FastAPI Routes

Build full CRUD routers with SQLAlchemy, Pydantic schemas (Create/Read/Update), response_model, status codes, error handling, and pagination

Web Development / Backend / FastAPI / Data & Databases

FastAPICRUD