Uber Cuts Translation Cache Memory by Up to 90% While Keeping P99 Latency Below 1 ms
InfoQ, Friday, November 20th, 2026
Uber redesigned its Go translation cache as a hybrid memory and disk store, cutting initial memory footprint by over 90%.
Uber redesigned its Go-based translation cache to cut its initial memory footprint by more than 90% while keeping a cache hit rate above 99.9%.
Profiling showed garbage collection used more than 20% of CPU in some services, with translations making up about 70% of allocated objects, and replacing sync.Map with a map protected by an RWMutex reduced allocations and improved CPU utilization by over 30% in the affected service.
A hybrid design then kept all keys and frequently used values in memory and moved remaining values to disk, using 256 shards, six-byte hashed keys, a time-based LRU policy and preloading of recently accessed entries on refresh.
One dataset that used about 800 MB in memory needed about 40 MB for metadata, with disk-backed miss latency at p99 under 100 microseconds.