This question evaluates the ability to design scalable, low-latency ML-driven systems for detecting and ranking trending queries, covering competencies in real-time event ingestion, streaming aggregation, ranking and scoring methods, personalization, and abuse mitigation.
You are designing a system to power the Top Trending Queries section on the home page of an AI search/Q&A platform (similar to Perplexity).
The product shows a list of trending user queries (search prompts) to visitors. Initially this list can be global, but over time you may want to personalize it (e.g., by country, language, or user interests).
Requirements and goals:
Design task:
Describe how you would design this trending queries system, including:
You do not need to provide code, but you should describe main components, data flows, and algorithms or approximations (e.g., for top-K) that you would use.
Login required