SD-29 · A/B TESTING PLATFORM · INTERACTIVEBreak it.
Break it.
Then fix it.
Turn up the events, watch what melts, and add the parts a real experiment platform needs. Every switch is a decision you would defend in an interview.
CHALLENGETake in 500K events/s with flag checks under 5 ms, no events dropped and no duplicates in the results.
StatusDOWNAt 200K events per second
Flag check p990.1 msTarget under 5 ms
Events lost86%Retries counted twice
Monthly cost$7,760Queries scan raw events
Apps with the SDKLIVE
200K events/s · 800K checks/straffic source
Rules fileOK
Fetched once a minutecached on the CDN
Collectors × 13HOT
Batches of events200K / 260K events/s
Data warehouseDOWN
Row inserts · raw scansload 667% · queries 50%
Analyst queriesOK
Every result scans raw events1,000 experiments
The warehouse is drowning in row inserts. Warehouses are built for big bulk loads, not 200K single inserts a second. Write events to a partitioned stream and load them in micro-batches.
0.1 msA local flag checkA hash and a lookup in memory, versus a network call per check.
4Flag checks per eventChecks far outnumber events, so they must never touch a server.
10,000Buckets per experimenthash(salt + user) mod 10,000 gives each user a stable bucket.
1%Duplicates after retriesEnough to fake a 1% lift if one variant retries more.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.