Loading page…
One strong interview answer to counting a billion ad clicks a day: a Flink stream for minute-fresh dashboards and an hourly Spark recompute for the billed truth, exactly once as a chain from signed click_id to an overwriting sink, event-time windows with watermarks for late clicks, and salted two-stage aggregation for hot ads.
Every click on an ad is money.