Uber Cuts Translation Cache Memory by up to 90% While Keeping P99 Latency Below 1 MS
Translations were about 70% of allocated objects at Uber, and garbage collection was eating more than 20% of CPU in some services. The fix wasn’t a rewrite: hot values stay in memory, the rest moves to 256 disk-backed shards, and Get()/Put() stayed the same. Over 90% less memory — one dataset went from ~800 MB to ~40 MB — with p99 cache-miss latency under 1 ms. Swapping sync.Map for a plain map behind an RWMutex alone bought 30% CPU 😄