SpinTheMic
Pro

Interview practice question

Sizing a cache

System Design · Fundamentals · Intermediate

Your system serves 100 million items, but 20 percent get 80 percent of the traffic. Each item is 1 KB. How big should the cache be?

What a strong answer covers

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

  • Hot set = 20% of 100M = 20M items.
  • 20M x 1 KB = 20 GB.
  • Add overhead for keys and structures.
  • Fits in a few cache nodes.
  • Measure hit rate and adjust.
Practise this topic

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

See all topics