Top-K trending items pipeline

Design a real-time system to surface the top-K trending items (e.g. trending hashtags, search queries) over a sliding 1-hour window across 100,000 events per second.

How is an answer to this question scored?

PrepGraph scores a written answer against 5 criteria specific to this question, then returns a rubric score and written feedback. The criteria cover what a strong answer has to establish, the trade-offs it has to name, and the traps it has to avoid. Top-K trending items pipeline is a advanced question in System Design, one of 66 Data Engineering questions in the Arena.

The criteria themselves and the AI feedback are available after you sign in. The question above is shown in full.

What should I know before answering?

This question connects to 3 related ideas. Working through them first usually makes the answer easier to structure, because interviewers expect a candidate to move between them without being prompted.

  • Kafka fundamentals
  • Flink vs Spark Streaming
  • Streaming vs batch

Practice this question on PrepGraph