Blog
Home

Tagged “cosmos-db”

← All articles
What the Change Feed pushes did to the bill: the container dropped, the Function app didn't

25 October 2026

Follow-up to my caching post. Daily Azure costs from September 25 to October 25 show the blog's Container App going from about 55 cents a day to one cent the day the article pages moved to Cloudflare KV, and the Function app that does the pushing getting more expensive at the same time. Real numbers, an intermediate result, and the one comment call that made the first two steps save nothing.

Three layers of caching in front of a container that scales to zero

26 September 2026

My blog's API is an Azure Container App that scales to zero, with a 30 second cold start. How three layers of caching keep readers from ever waiting on it: a stale-while-revalidate cache in a Cloudflare Worker, a durable KV fallback for Cloudflare's per-colo cache, and Cosmos DB Change Feed pushes so reads stop waking the container at all. With real monthly costs, and the trade-offs I accepted instead of solving.

Adding Comments to This Blog: Cosmos, an Azure Function, and Cloudflare AI

10 September 2026

How I added a moderated comment system to this blog: Cosmos DB's own Change Feed as the queue, an Azure Function scoring comments via Cloudflare Workers AI, least-privilege RBAC kept out of the CI pipeline on purpose, several real bugs found the hard way in production, and a mid-flight model upgrade after the small LLM proved unreliable.