SQLAlchemy Cheatsheet 19 — Change Feeds, Outbox, and Logical Replication
Cheatsheet: outbox emit on commit, CDC via Debezium, logical replication, SKIP LOCKED worker pattern.
Cheatsheet: outbox emit on commit, CDC via Debezium, logical replication, SKIP LOCKED worker pattern.
Cheatsheet: cursor pagination, filter from Pydantic, sort safelist, bulk upsert, COPY-fast loads.
Beyond the SQLAlchemy 2.0 basics: mapped types in depth, async sessions, hybrid properties, lazy/eager strategies, batched inserts, dataclass mixin, and the production patterns.
A complete, opinionated production layout for FastAPI in 2026. Pydantic v2, async SQLAlchemy 2.0, Alembic, dependency injection, structured errors, settings, logging, and the project skeleton that survives the first 50 endpoints.
Build a production-ready FastAPI + SQLAlchemy 2.0 + PostgreSQL stack with async sessions, dependency-injected DB access, and Alembic migrations.