Skip to content
SD-20 · WEB ANALYTICS PIPELINE · INTERACTIVE

Break it.
Then fix it.

Turn up the event rate from a million websites, watch what melts, and add the parts a real analytics pipeline needs. Every switch is a decision you would defend in an interview.

CHALLENGETake 400K events/s with nothing dropped, bots filtered out, and dashboard queries under 1 second.
StatusDOWNAt 100K events per second
Dashboard query9,000+ msTarget under 1,000 ms
Events lost78.6%Events being dropped
Bot trafficFilteredNumbers are honest
Monthly cost$1,9808 collectors
Visitor browsersLIVE
100K events/s
traffic source
Site ownersREADS
500 dashboard queries/s
query source
Collectors × 8OK
Bots filtered downstream
100K / 160K events/s
SQL databaseDOWN
Raw events only
70K / 15K rows/s · 500 / 50 q/s
Every event is its own insert. The database spends its life on tiny writes and tops out near 15,000 a second. Append events to a replicated log first, and load the store from it in big batches.
30%Hits from botsFiltered before counting, and re-filtered nightly when rules change.
100×Batch vs single inserts15,000 single inserts a second; 1.5M rows a second in big columnar batches.
12 KBOne visitor sketchHyperLogLog counts unique visitors within 0.8%, and sketches merge.
< 1 sAny date rangeA year of daily rollups is a few hundred rows, so long ranges cost the same as short ones.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.