Get startedGet started for free

Selecting an appropriate cache eviction policy

You're designing a caching system for a high-traffic e-commerce website. The product catalog contains millions of items, but only a small percentage (about 5%) of products receive 80% of all views. Which cache eviction policy would be most appropriate for this scenario?

This exercise is part of the course

Optimizing Code in Java

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise