BotBeat
...
← Back

> ▌

AnthropicAnthropic
RESEARCHAnthropic2026-07-22

Conventional Cache Keepalive Strategy Costs 8× More Than Optimal; Anthropic Benefits Most

Key Takeaways

  • ▸The conventional 30-second cache keepalive interval costs 8× more than the optimal ~4-minute interval, though optimization benefits vary dramatically by provider
  • ▸Anthropic's hard 5-minute TTL makes cache keepalives a clear cost-saving decision; OpenAI and Google's sticky caches provide minimal benefit from keepalives
  • ▸DeepSeek exhibits lossy cache behavior with ~20% miss rates at 1-minute intervals due to endpoint routing limitations, making keepalives less reliable
Source:
Hacker Newshttps://blog.mempko.com/keeping-the-kv-cache-warm-measuring-prompt-cache-eviction-across-anthropic-openai-and-google/↗

Summary

A comprehensive benchmark study of cache keepalive strategies across major AI providers reveals that the industry-standard practice of pinging every 30 seconds costs eight times more than necessary. The research, which tested Anthropic, OpenAI, Gemini, and DeepSeek across multiple prefix sizes and idle gaps up to ten minutes, found that the optimal keepalive interval is approximately 4 minutes rather than 30 seconds.

The findings expose fundamental differences in how each provider manages cache TTLs: Anthropic uses a hard TTL cliff at 5 minutes where keepalives provide measurable cost savings; DeepSeek exhibits lossy behavior with occasional cache misses due to routing limitations; OpenAI and Google maintain sticky caches that survive the full 10-minute test window, making keepalives largely unnecessary for those providers. The economics are straightforward: pings cost approximately 10% of input price every interval, while cache storage costs 0.1× per interval. The optimal interval should approach the provider's TTL minus a safety margin.

The study suggests that cache keepalive strategy should be tailored per-provider rather than universally applying the conventional 30-second interval. For organizations running agentic workloads at scale—where agents pause between requests, waiting for tool results or human approval—this optimization could translate to significant cost savings, particularly on Anthropic's platform where cache economics clearly favor keepalives.

  • Optimal cache strategy requires per-provider tuning: the breakeven idle time ranges from 12 minutes (Google) to 46 minutes (Anthropic)

Editorial Opinion

This research fills a critical gap between industry folklore and measured reality for agentic AI development. Developers have blindly adopted the 30-second keepalive convention without measuring actual costs or provider-specific behavior, leaving real money on the table with Anthropic while burning tokens uselessly with OpenAI and Google. The study proves that cache management is far from a solved problem—providers should publish their TTL behavior transparently, and developer frameworks should adapt strategies dynamically or recommend provider-specific defaults rather than treating all APIs identically.

AI AgentsMLOps & InfrastructureMarket Trends

More from Anthropic

AnthropicAnthropic
RESEARCH

Research Shows AI Advice Suppresses Critical Thinking and Admission of Ignorance

2026-07-22
AnthropicAnthropic
INDUSTRY REPORT

LLMs Reshape Software Security: Massive Gap Emerging Between Well-Resourced and Vulnerable Projects

2026-07-22
AnthropicAnthropic
FUNDING & BUSINESS

AMD to Invest Up to $5B in Anthropic

2026-07-22

Comments

Suggested

MetaMeta
INDUSTRY REPORT

AI Tech Giants Have Hidden $1.65 Trillion in Debt Off Their Balance Sheets

2026-07-22
Google / AlphabetGoogle / Alphabet
FUNDING & BUSINESS

Reddit Considers Blocking Google's AI Access as Stock Price Declines

2026-07-22
ImbueImbue
PRODUCT LAUNCH

Imbue Open-Sources Catalyst, Evolution-Based Tool for Automating AI Research

2026-07-22
← Back to news
© 2026 BotBeat
AboutPrivacy PolicyTerms of ServiceContact Us