← All parts

End-to-End Design

Design an Ad Click Aggregator · Part 3
Problem context

Design a system that records ad clicks and gives advertisers near-real-time aggregates — clicks per campaign, sliced by country or device, over a time window — while also feeding the numbers that go on an advertiser's bill.

In scope: ingesting click events, aggregating them into windowed counts, and serving those aggregates to dashboards and a billing job. Click attribution modeling, fraud and invalid-click filtering, and the ad-serving decision itself are separate systems and out of scope.

What a strong answer sounds like

State the decision, connect it to a requirement, and name the tradeoff. Keep the design focused on the workload in the prompt.

Ready for the end-to-end design interview?

The AI interviewer asks about this part of Design an Ad Click Aggregator. The interviewer guides you through topics one by one.