Your question is Design ML-Driven Cache Ranking. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
ShopNow is a large e-commerce marketplace. The homepage, search, and product-detail pages rely on a distributed cache to serve personalized recommendations, popular products, pricing summaries, and feature vectors under tight latency budgets.
| Signal | Value |
|---|---|
| DAU | 45M |
| Peak read QPS | 900K requests/sec |
| Peak write/invalidation QPS | 120K events/sec |
| Active product catalog | 180M SKUs |
| Personalized cache keys | ~2.5B active/day |
| End-to-end p99 latency budget | 120ms |
| Cache memory budget | 14 TB across regions |
Design an ML-driven caching strategy that decides what to cache, where to cache, and when to evict or refresh for high-traffic product surfaces. Assume not all objects fit in memory, request patterns are highly skewed, and popularity changes quickly during promotions.
Your design should address: