Insights
Lessons from
real systems.
Practical notes on Python backends, payment integrations and running software in production, with examples we have tested.
· 6 min read
When production breaks: an incident checklist for Python backends
What to check in the first minutes of a production incident: impact, what changed, which release is running, database locks and external services. With tested FastAPI and PostgreSQL examples.
· 6 min read
Database migrations without downtime: expand, backfill, contract
Schema changes can lock a busy PostgreSQL table. How to split them into safe Alembic migrations with lock timeouts, batched backfills and concurrent indexes.
· 5 min read
Payment webhooks that are safe to retry
Payment providers retry webhooks, so the same event can arrive twice. How to make a FastAPI webhook handler idempotent with SQLAlchemy, with a tested example.
· 4 min read
Correlation IDs in FastAPI: follow one request everywhere
Give every request an ID, log it everywhere and pass it to the services you call. A tested FastAPI example using middleware, contextvars and httpx.