Deduplicate click counts
Difficulty 3 of 5
Ad clicks arrive in batches of 1,000, two batches each second for 60 s. Each batch takes 20 s to count. The queue delivers at least once. At 0:20, delivery to the aggregator slows by 15 s for 30 s. Count each click once, lose none, and finish within 150 s.
13 deliveries · 10 payments applied · 0 charged twice
Goals and limits
- Duplicates
- none
- Lost writes
- none
- Completion time
- under 150 s
- Monthly cost
- under 100 USD/mo
- Parts you can add
- Key-value store, Postgres, Redis cache, Worker
- Part limit
- 4
Concepts
How players did
Player results load from the server.