SpinTheMic
Pro

Interview practice question

Homepage key expiry spikes the database

System Design · Caching · Intermediate

Every hour, when the homepage cache key expires, database CPU spikes to 100 percent for 30 seconds. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Stampede on a hot key.
  • Single-flight lock for rebuild.
  • Serve stale while refreshing.
  • Background refresh job.
  • Jitter TTLs.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics