Reached a 30% cache hit-rate, sparing the primary DB
The codebase carried a decade of shortcuts, and every change touched three things nobody had written down, so estimates were fiction. I paid down the debt that actually blocked us — carved clean seams, wrote the missing tests first, and made the scary changes routine.
Added a caching layer with honest invalidation; 40% of reads stopped touching the primary.