Fix the Page, Not the API
A homepage that needed 19 API calls loaded one section at a time. GraphQL would have meant redesigning the API. Precomputing each page at the edge fixed the speed, and then quietly survived an outage and a bot flood.
A homepage that needed 19 API calls loaded one section at a time. GraphQL would have meant redesigning the API. Precomputing each page at the edge fixed the speed, and then quietly survived an outage and a bot flood.
A Cloudflare Worker cache in front of a FastAPI backend: TTLs per path, never caching per-user data, serving stale copies during outages, and why every bad TTL I set showed up as a user-facing bug.