Caching

Hot key stampede

A celebrity product id is in every homepage. When its cache entry expires, 5k requests miss at once and the DB spikes. What techniques would you use so the origin is not crushed? Name at least two and when each helps.

Intermediate drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson