Interview practice question
Trending items in near real time
Data Engineering · System Design · Intermediate
Design a system that shows the top 100 trending products on a website, updated every minute.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Stream view and purchase events.
- Sliding window counts per product with decay or recency weighting.
- Top-K computation per window.
- Store results in a cache for the website.
- Filter bots and spam.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.