Case study demo
Ad click aggregation
Count a stream of ad clicks in time windows, and see what late and repeated clicks do to the totals.
An interactive demo of how this system behaves. It runs in your browser.
The whole system
How the parts fit together
- Browser — clicks an ad — healthy
- Click API — checks, then accepts — healthy
- Click log — every click, in order — healthy
- Stream aggregator — counts per minute — healthy
- Raw clicks — kept for recounts — healthy
- Totals DB — clicks per ad, minute — healthy
- Advertiser view — reads the totals — healthy
- Request/response
- Asynchronous
Every click is written to a log first, so none is lost. A stream job adds the clicks up per minute, and the raw log lets the totals be counted again.
The demo below lets you try one part of this system.
The part you can try here is the lab Stream windows & late events. It is the same live model.