Deduplicate click counts

Flow 05
SQLUsers2 req/sMessage bro…1 vCPU · 1 GBWorker2 vCPU · 2 GBPostgres2 vCPU · 2 GB
AMQPHTTP/2SQLUsers2 req/sMessage br…WorkerPostgres

Turn every goal green.

Traffic
2 req/s · writes only
Limit
Postgres answers about 5,000 writes/s
Bill
  • Message broker4 USD/mo
  • Worker8 USD/mo
  • Postgres8 USD/mo
20 of 100 USD/mo

Goals

Not tested yet

Work that ran twice.Saved data that was lost later.Time until all the work is done.What the servers and services cost each month.

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.

Parts you can add: Key-value store, Postgres, Redis cache, Worker. At most 4 parts. Budget: 100 USD/mo.

Tap a part to add it, or drag it onto a trace.Click a part to add it, or drag it onto a trace.