17 Design a dashboard of top 10 products on Amazon by sales volume

This chapter covers

  • Scaling an aggregation operation on a large data stream
  • Using a Lambda architecture for fast approximate results and slow accurate results
  • Using Kappa architecture as an alternative to Lambda architecture
  • Approximating an aggregation operation for faster speed

Analytics is a common discussion topic in a system design interview. We will always log certain network requests and user interactions, and we will perform analytics based on the data we collect.

The Top K Problem (Heavy Hitters) is a common type of dashboard. Based on the popularity or lack thereof of certain products, we can make decisions to promote or discontinue them. Such decisions may not be ...

Get Acing the System Design Interview now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.