35/37
Part 6 of 6 · Follow-upsLearn and do

Other eviction policies can win on other traffic

LRU bets that what was used recently will be used again. Three other policies:

  • FIFO evicts the oldest write.
  • LFU, least frequently used, evicts the entry with the fewest hits.
  • Random evicts a key picked at random.
Predict

Popularity moves to 1,000 new keys every 10,000 requests. Which policy's hit rate collapses?

Pick an answer above to see the rest