"Case Study: Top-K and Click Counting"
Many servers see a stream of events (clicks, searches, video views), and a dashboard must show the top K items of the last hour. The central trade-off is exactness against memory: counting every item exactly needs space for every item, while a small sketch gives answers that are close but may be too high. After reading you can explain the count-min sketch, keep the top K in a small heap (a list that always shows which entry is the smallest), and handle time windows and late events.
Topics in this section
- Requirements and scope
- Numbers
- API and data
- The first design
- Counting without storing everything
- Windows and late events
- Failures and scaling