SD-42 · FLASH GIVEAWAY · INTERACTIVEBreak it.
Break it.
Then fix it.
Hit the launch button, watch what melts, and add the parts a real giveaway needs. Every switch is a decision you would defend in an interview.
CHALLENGETake 1M claim attempts/s with no errors, no duplicate claims, and bots kept under 5% of the burgers.
StatusDOWNAt 1M attempts/s
Errors96%Users see failures and retry
Duplicate claimsNoneOne burger per account
Burgers to bots40%Target under 5%
PhonesLIVE
40% are bots and scripts1.0M attempts/s
Waiting roomOK
Admits 50K users/s1.0M waiting · 50K admitted/s
Claim servers × 100DOWN
Claims + every page load3.0M / 1.0M req/s
Stock row in SQLDOWN
One hot row, 6,000,00050K / 2.0K decrements/s
Claims DBDOWN
Written on every claim50K / 20K writes/s
Page loads are burying the claim servers. Each attempt also loads the app shell and polls the countdown, 3 requests that never change. Serve them, and the sold-out flag, from a CDN.
6MBurgers, never one more100 stock shards of 60,000 each; a decrement below zero is refused atomically.
50K/sAdmitted from the roomAt that rate 6M burgers are gone in about 2 minutes.
40%Attempts from scriptsDevice checks and per-account limits cut bots to about 2% of burgers.
1Burger per accountThe claim key is set in the same atomic step as the decrement.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.