Section 9: Trying to Break the On-Sale - Interviewer Deep-Dive Challenges
Executive Summary: With the hold and the waiting room on the board, the interviewer starts attacking. Seven escalations: bots, a slow payment provider, hold hoarding, a double-clicked Pay button, "why not Redis", general admission and a lying seat map. Each is answered by a decision you already made, with the number behind it and its flip trigger.
Challenge 1: "Half the Queue Is Bots"
"1.5 million of your 3 million fans are scripts. What now?"
What they're really asking: Do you defend where bots win, at entry and at hold time?
The model answer: Layers, cheapest first, each one at the edge before the origin sees anything:
Proof-of-work adds about a second of phone CPU per entry: nothing for one fan, a real bill for a farm minting millions of entries. Binding the token to account and device stops one login from minting a thousand positions. A bot that survives all of it is one shopper with 4 tickets and an 8-minute hold, admitted at the same 67 a second as Jordan. A verified-fan presale moves the filter before the sale starts.
Rejected: CAPTCHA at checkout only, because by then the bot already holds seats. The flip is demand: at 50 fans per seat and rising, real-time filtering gives way to the registration lottery in Section 11.
The senior line: "Bots win at entry and at hold time, so that's where the defences sit. Anything that gets through is just another account with 4 tickets."
Quick check before moving on:
Sign in to continue reading
The rest of this lesson is available with a free account. Signing in with Google or Microsoft is free.
Sign in to read the full lesson