Ticketmaster 00:00:01 One hold covers two seats Two friends want adjacent seats at a concert. One tap must reserve both or the friends may discover they have paid for different rows. This example follows the seats through a temporary hold, payment and final confirmation. The client sends both seats and a random key. A repeat of this request must return the same hold. It checks the sign-in, the pass from the waiting room and the rate limit. Nobody skips the line by calling the API. Lock both seat rows in a consistent seat order within one transaction. A competing buyer now waits for the current decision instead of relying on an earlier availability read. Available, or held by someone whose time is over. An expired hold needs no cleaning job to be reusable. 201 with the hold id, the exact end time and the price. The page can count down without asking. The price shown now is the price that will be charged. Give the hold a stable identifier, a clear expiration and a transaction boundary that covers both requested seats. Taking the second seat in an unrelated later write would expose a partial reservation. 00:01:11 Buy the seats already held Hold id, a card token and a random key. The card number goes straight to the provider's form. We never store it. Move the seats from held to paying, only if this hold is in time. A bank check in an app may take a minute; the seats wait in paying. Two rows must change. Any other count means something is wrong, so roll back and release the money. From here the seats are sold whatever fails. Workers process the durable events for capture, tickets and email. Each downstream handler needs its own repeat-safe identifier or transactional record. Check the owner and lifetime of the hold at the point of purchase. Charge under a repeat-safe payment intent and make the order's pending state visible across that external boundary. 00:02:00 Let people in at a sustainable pace Fourteen million people, five thousand inside. Everyone in the lobby gets a random place; one public number calls them. Fans open the event page and land in a lobby served by the CDN. Early pages must not touch our servers. At ten everyone in the lobby gets a random place. A fast line or a script wins nothing. Those who come after ten stand behind, in order of arrival. A random place would let them jump ahead. The shop says how many are inside. 5,000 for three minutes each is 1,667 a minute. 12,345 at 1,667 a minute is about 8 minutes. The page says about, never exactly. Every shop request carries the pass. Without one the gateway sends the fan back to the room. Admission changes the arrival rate at the booking service. It does not replace the database rule that prevents two admitted buyers from confirming the same seat. 00:03:02 Silence from the payment provider The card call times out. Was the money reserved or not? The seats are paying. We do not know the result, so we must not guess. Repeat the call with the order id as key, or ask for its status. The provider returns the first result. The provider also calls us when it is done. The order is moved once, whichever arrives first. The seats go back to held if there is time left, otherwise to available. A reconciliation job matches provider records with orders. If a payment was authorized without a corresponding order, the team resolves the authorization or refund according to its provider contract. Ask the provider for the outcome under the same payment identity. Reconcile uncertain cases explicitly. Issuing an unrelated new charge because the first reply went missing can make the customer pay twice. 00:03:56 When temporary memory disappears A variant keeps holds in Redis. This is what its failure looks like. The lock may or may not be set. This state is unknown, not no. After five in a row the breaker opens and Redis is skipped. It refuses writes. A replica promoted too early may also have missed locks, because copying is not instant. A conditional update on the seat row decides. Slower, still right. After 30 seconds a few calls test Redis. If they work, the breaker closes. If the row always decides, the cache can be left out until a number asks for it. If a cache gives a hint that a seat is free, the durable seat record must still govern the claim. Losing the hint should change load or wait time, not who owns a confirmed ticket. 00:04:45 Close the room when seats are gone All seats are held or sold. Holds can still come back. The public file says nearly gone. Nobody new enters until seats return. Expired holds are offered to the next places in line. The file says sold out, and the page offers a waiting list for more dates. A truthful sold-out response avoids repeatedly admitting people to a purchase flow that cannot succeed. A waiting list belongs to a future opportunity and does not promise a seat at this performance. The seating chart can tolerate a little delay. The final seat assignment and payment outcome cannot be guessed from a green dot or from a timed-out phone.