System Design Problem

Design Top K Rankings System (App Store / Amazon Bestsellers)

Commonly Asked By:AppleAmazonGoogleNetflixTwitter

  • Compute and display top K items (K = 10, 50, 100) ranked by a metric (sales, downloads, ratings, revenue)
  • Support multiple ranking dimensions: overall, by category, by time period (daily, weekly, monthly, all-time)
  • Near real-time updates: rankings reflect recent activity within minutes
  • Support historical rankings: "What was #1 last Tuesday?"
  • Handle large scale: millions of items, billions of events (purchases, downloads)
  • Expose ranked lists via API for clients
Loading...