MBMadhav Bhasininblog.madhav.dev·2d ago · 5 min readFastAPI Background Tasks vs Pub/Sub vs Cloud Tasks: When to Use WhatThe queue had been growing for six days before anyone noticed. A Cloud Tasks queue processing cart abandonment reminders had started backing up after a handler deployment introduced a subtle bug — an 10
MBMadhav Bhasininblog.madhav.dev·Jul 29 · 5 min readI Migrated a Product from AWS to GCP — Here's What I'd Do DifferentlyLast year we moved a production platform off AWS and onto GCP. Full migration — compute, database, storage, CDN, CI/CD, the works. The product was live, clients were active, and we had no meaningful d42N
MBMadhav Bhasininblog.madhav.dev·Jul 24 · 5 min readTesting FastAPI Services: Unit, Integration, and Contract TestsThe test suite was green. All 47 tests passing, CI clean, PR merged. Two hours later someone flagged that the staging database had 3,000 rows of test order data in the orders table. A test that was su20
MBMadhav Bhasininblog.madhav.dev·Jul 21 · 5 min readFastAPI + Pydantic in Production: Contracts, Validation, and VersioningTwo FastAPI services. One producing order events, one consuming them. Both running fine in staging. In production, the consumer started silently dropping records. No exception. No 5xx. Just missing da00
MBMadhav Bhasininblog.madhav.dev·Jul 17 · 4 min readWhat the FastAPI Docs Don't Tell You About ProductionThe service had been live for weeks. Locally, staging, early production — fast, clean, no issues. Then a new client onboarded, traffic doubled overnight, and P99 latency climbed from under 100ms to ov10