You are tasked with designing a large-scale Ad Click Aggregation System. This system needs to track and aggregate millions of ad clicks in real-time from various sources. The aggregated data will be used to provide insights such as the number of clicks each ad has received and help generate reports for advertisers on user engagement.
Suggested time: 45 minutes
Loading the workspace...
An ad click aggregation system looks like a counter on the surface: count how many times each ad gets clicked. The real challenge is that these counts directly drive billing. Advertisers pay per click, so every lost click is lost revenue and every double-counted click is overcharging. This is not a tally; it is a financial pipeline that must be accurate at massive scale, and the right mental model for the architecture is not "high-throughput web service" but "streaming aggregation with billing-grade correctness."
Design a Load Balancer (hard)
Design a Smart Home System (hard)
Company guides that list this problem among their sample questions.