In an interview, nobody draws a cache "to be safe": the interviewer will ask what load it takes off and from which block. The answer starts with the numbers from the estimate: how many requests come in, what they read and how much the database can take. The whole chapter runs on one example, the catalog of an online store, where 20,000 product cards a second are viewed at peak.
In this lesson
- Hit and miss
- What to put in a cache
- The cost of a cache
- Common mistake
- Key points