Alembic Textbook Ch. 7 — CI Integration

Alembic CI patterns: drift detection, migration round-trip tests, dry-run, deploy gates, and pre-merge checks.

May 10, 2026 · 3 min · 637 words · Manvendra Rajpoot

Pydantic v2 Textbook Ch. 7 — Strict Mode and Coercion

When Pydantic coerces vs raises: strict mode, per-field strict, lax/strict tradeoffs at API boundaries.

May 9, 2026 · 3 min · 581 words · Manvendra Rajpoot

Postgres SQLAlchemy Textbook Ch. 7 — Partitioning Strategies

Postgres declarative partitioning via SQLAlchemy: range/list/hash partitions, pg_partman automation, indexes per partition.

May 8, 2026 · 4 min · 646 words · Manvendra Rajpoot

SQLAlchemy 2.0 Textbook Ch. 7 — Transactions and Concurrency

Transactions and concurrency: isolation levels, savepoints, FOR UPDATE locking, optimistic locking, retry patterns, and the cross-DB differences.

May 7, 2026 · 4 min · 724 words · Manvendra Rajpoot

FastAPI Textbook Ch. 7 — Async, Concurrency, and the Threadpool

Concurrency in FastAPI: async vs sync handlers, the threadpool, AnyIO, blocking traps, structured concurrency, and how to scale.

May 6, 2026 · 5 min · 1033 words · Manvendra Rajpoot

Alembic Textbook Ch. 8 — Production Patterns and Recovery

Production Alembic: deploy strategies, recovery from broken migrations, stamp, manual fixes, and the operational checklist.

May 10, 2026 · 4 min · 824 words · Manvendra Rajpoot

Pydantic v2 Textbook Ch. 8 — JSON Schema Generation

JSON Schema from Pydantic: model_json_schema, OpenAPI integration, custom schemas, examples.

May 9, 2026 · 3 min · 579 words · Manvendra Rajpoot

Postgres SQLAlchemy Textbook Ch. 8 — Row-Level Security and Multi-Tenancy

Postgres RLS for multi-tenant SQLAlchemy: defining policies, setting tenant context per request, and integration with FastAPI.

May 8, 2026 · 4 min · 707 words · Manvendra Rajpoot

SQLAlchemy 2.0 Textbook Ch. 8 — Async SQLAlchemy in Depth

Async patterns in SQLAlchemy 2.0: AsyncSession, expire_on_commit, async streaming, lazy loading caveats, AsyncSession scopes.

May 7, 2026 · 5 min · 880 words · Manvendra Rajpoot

FastAPI Textbook Ch. 8 — WebSockets, SSE, and Streaming Responses

Real-time FastAPI: WebSockets, broadcast / pub-sub, SSE for one-way streams, StreamingResponse, NDJSON, and disconnect handling.

May 6, 2026 · 5 min · 932 words · Manvendra Rajpoot