Azure vs Vertex: same agent traffic, 86% vs 99% prompt cache hits — a 5x input cost gap

Own-Worker9159 · reddit · 2026-12-05

Moving coding-agent workloads (Claude Code/OpenCode, 100k-900k token conversation prefixes) from Azure to Vertex raised prompt cache hit rates from 85.9% to 99.0% on identical traffic — a 5x input cost difference at identical list prices. Azure routes to two non-cache-sharing pools (90%/10%); cross-pool requests get zero cached tokens even seconds after the prefix was cached. A stable promptcachekey helped (74%→82%) but Azure support says data zones aren't available. With a 50x cached/uncached price gap, effective input cost was $0.047 vs $0.009 per million tokens. Practical advice: log cachedtokens per request, keep prefixes stable, system prompt and tools first, use per-conversation cache keys, and re-check regularly.

Original post →

More from coding & agent

coding & agent channel →