Last active 5 days ago
interview
Interview prep notes
0
0
1
System Design Interview: Designing an Ad Click Aggregator
Advertisers are billed on click counts, so the numbers must be correct, and they want them within a minute.
Requirements
- Ingest click events (ad_id, user, timestamp, ...) at ~50k per second, peaks of 5x.
- Query clicks per ad per minute for the last N minutes, and top-K ads per minute.
- Counts must be accurate for billing; late and duplicate events happen.