How to Track Background Job Progress in React and FastAPI
Track FastAPI background jobs in React with persisted job IDs, status endpoints, safe polling and refresh recovery. Includes a runnable local example.
Read articleWriting
Articles on engineering decisions, implementation details, and the tradeoffs behind reliable production systems.
14 articles
Track FastAPI background jobs in React with persisted job IDs, status endpoints, safe polling and refresh recovery. Includes a runnable local example.
Read articleAn Idempotency-Key header is only a label. The real guarantee comes from request fingerprints, PostgreSQL constraints, atomic results, and correct retries.
Read articleHow transaction-local tenant context, PostgreSQL Row-Level Security, and connection-pool tests prevent one request from inheriting another tenant's access.
Read articleA 200 from /health proves very little. Useful health checks separate process life, traffic readiness, dependencies, workers, data freshness, and user journeys.
Read articleAn application log can say that an update ran. An audit trail must preserve who changed what, why it changed, and which exact version was affected.
Read articleA database transaction and a message provider cannot share one commit. Here is how an outbox table, leased worker, and idempotency close the failure window.
Read articleFour architecture decisions that kept an enterprise expense system auditable: claim boundaries, immutable history, identity, and concurrent writes.
Read articleAn agent can retain a revoked tool. Why long-running workflows create a TOCTOU authorization bug — and why the decisive guard belongs immediately before provider I/O.
Read articleRetrying an external write is a guess about which of three worlds you are in. Idempotency keys, business-key deduplication, and the database invariants that make the guess unnecessary.
Read articleCorrelating one job across TypeScript, a queue, and Python — without turning routine telemetry into a second copy of the sensitive payloads it describes.
Read articleEvery model call in a routing path converts a fact into a guess. What I learned about spending probabilistic routing only where the ambiguity is real.
Read articleWhy a model-generated Mermaid diagram or ECharts spec is a program, not data, and the two-tier validation and bounded repair pipeline I built around it.
Read articleTwo and a half years of building agent systems, and what I got wrong about architecture, context, evaluations, model routing, permissions, and recovery.
Read articleHow leases, checkpoints, ownership-safe writes, and tool-history repair made Research-AI recoverable — and what the design still does not guarantee.
Read article