Problem Statement
Primary reasons to deploy an application cache are which of the following?
Explanation
A cache sits closer to the user or the app to serve frequent data with microsecond to millisecond latency. That improves user-perceived speed.
It also absorbs repeat reads so the origin database and services handle less load, which lowers tail latency and cost under spikes.
Code Solution
SolutionRead Only
GET key -> cache hit? return; else read DB, set cache, return
