Practice
Learn
← Quit
0 / 0 correct
System Design
Hard
1 of 20
Designing a 'top K trending hashtags in the last hour' service. Which approach scales?
A
Store each tag occurrence and SELECT COUNT GROUP BY on each request
B
Sort all hashtags from the database every second
C
Count-min sketch or per-window counters in a stream processor, plus a min-heap of size K per window
D
Track only the first K tags seen