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.
More from coding & agent
- Antigravity agent accepts absurd dare to draw a figure in C++ feature by feature — MickeySteamboat · 2026-12-06
- Chrome DevTools for Agents Lets AI Test and Optimize Real Websites in Google Antigravity — goyalshaliniuk · 2026-12-06
- Solo Dev: AI Finally Makes Building a Game Entirely Alone Possible — yacineMTB · 2026-12-06
- Duke brings Rashomon-set geometry and a +18pt programmatic-memory agent to NeurIPS — shuyanzh36 · 2026-12-06
- Open-source Blender skills let AI agents produce full 3D animation pipeline in Python — Promptmethus · 2026-12-06
- Three questions to ask before automating anything: cadence, human review, failure signals — jesseweimer · 2026-12-06