← 返回 oracle 的题目列表Designing Scalable Event Reporting with Top-K Aggregation System
类型:online_judge
oracle
System Design Question
Suppose there is a simple single-server system where clients send requests to report some events. With a significant increase in the number of requests, you need to redesign the system to handle them efficiently. Additionally, the system needs to perform aggregation on events, such as extracting the top K events. How would you design this system?
Example
Input
Example input where client sends a burst of 1000 requests per second for event 'A' and 2000 requests per second for event 'B'; after processing, extract top 2 most reported events.