HardScenarioMore classic designs
Design an ad click aggregation system.
What a good answer covers
Ingest click events into a partitioned log, deduplicate by event ID, aggregate in stream windows by ad and minute, store results in an analytics store, and reconcile with a batch job for exact billing numbers.