How to test database migrations in CI with production-shaped data, compatibility checks, backfill verification, schema drift detection, and rollback gates.
How to choose database transaction boundaries in backend APIs so writes stay atomic without holding locks across external calls, retries, or slow work.