Deduplicate click counts

  • Build
  • Flow 05

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.

Play level

SQLUsers2 req/sMessage bro…1 vCPU · 1 GBWorker2 vCPU · 2 GBPostgres2 vCPU · 2 GB
AMQPHTTP/2SQLUsers2 req/sMessage br…WorkerPostgres
The board at the start of the level
Delivered twice, charged onceTap to turn the ID check on or off

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.