Skip to content
Theory · Caching at system level · lesson 1 of 7

Where to put a cache

The copy at the window expired (TTL 0), and all 20000/s letters rush at once to the archive that holds only 2000/s

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