AlgoViz

Design an Ad Click Aggregator

hard 75 min

Turn ten billion clicks a day into fast dashboards and exact bills: a durable log, event time, deduplication, totals and a daily recount.

Where it shows up

The same pattern appears across everyday software.

  • Search ads

    The same click supplies a dashboard, a possible charge and a later conversion report. Each may have a different finish time.

  • Google invalid clicks

    Google Ads says clicks its automated protections find invalid are filtered from campaign metrics, and that they are not charged.

  • Email campaigns

    Link scanners may open every link before a person does. Raw requests and valid human clicks need separate counts.

  • Short video

    Views use the same append, window and rollup pattern, but the validity rule may depend on watch time.

  • Electricity meters

    Readings can arrive hours late. Quick graphs and final bills use event time and correction.

  • Small campaign

    One database table and an hourly SQL group may be better than a streaming cluster.