The Herd That Broke Ticketmaster: How 14 Million Swifties Accidentally Explained Distributed Systems to Congress
๐Ÿ—๏ธSystem DesignNovember 22, 2026 at 3:18 AMยท8 min read

The Herd That Broke Ticketmaster: How 14 Million Swifties Accidentally Explained Distributed Systems to Congress

On November 15, 2022, 14 million people clicked 'buy' on Ticketmaster at the same moment โ€” and the internet learned, in real time, what engineers call the Thundering Herd. Here's the decades-old problem behind the meltdown, and the five mitigation patterns that actually fix it.

System DesignDistributed SystemsCachingScalabilityThundering Herd

10:00 AM, Eastern Time

She wasn't even performing yet. Taylor Swift's Eras Tour presale opened at 10am on November 15, 2022, and within seconds, Ticketmaster's systems were taking what the company would later describe, in a 14-page apology posted to its own blog, as 'historically unprecedented demand.' 3.5 billion system requests. Fans with Verified Fan codes โ€” codes meant to guarantee a shot at tickets โ€” sat in blue loading screens for six, seven, eight hours. Some watched their queue position go backwards. Some got kicked out entirely and had to start over. By the end of the day, Ticketmaster canceled the general public on-sale outright. It never happened.

The backlash was instant and bipartisan in the most literal sense โ€” three months later, Ticketmaster's president was sitting in front of the U.S. Senate Judiciary Committee, and Senator Amy Klobuchar was quoting Taylor Swift lyrics at him. But strip away the congressional theater and the fan outrage, and what happened on November 15th is one of the cleanest, most public demonstrations of a problem that's been breaking computer systems since the 1970s: the thundering herd.

What a Thundering Herd Actually Is

The term comes from an old Unix networking bug. When multiple processes are all blocked waiting on the same event โ€” a new connection arriving on a socket, a lock being released, a cache key expiring โ€” and that event finally happens, every single one of them wakes up at once, scrambles for the same resource, and almost all of them lose. The herd stampedes. Most of the energy is wasted. Often, the stampede itself destroys the thing everyone was racing toward.

The canonical software example is a cache stampede. Imagine a popular cache key โ€” say, tickets:erastour:available_seats โ€” with a 60-second TTL. At second 60, it expires. In the next 10 milliseconds, 10,000 requests check the cache, all get a miss, and all 10,000 independently go to the database to regenerate the value. The database, built to handle maybe 50 concurrent queries comfortably, now has 10,000 queued connections. Query latency goes from 2ms to 4 seconds. More requests pile up behind the slow ones. The connection pool exhausts. The app servers start timing out and retrying โ€” which adds more load. Within 60 seconds, a perfectly healthy system is on its knees. Nobody attacked it. The traffic wasn't even that unusual in total volume. It just all arrived in the same instant.

Now scale that pattern up to 14 million humans, synchronized by a countdown clock, all clicking 'buy' on a fixed-inventory, fixed-timestamp event. That's not a cache stampede. That's the entire internet's version of one.

Anatomy of the Collapse

Ticketmaster's system that day wasn't naive โ€” it had bot detection (Akamai-powered), a queueing system called Queue-It, and Verified Fan presale codes specifically designed to spread load over time instead of an open stampede. The theory was sound: give out codes to a known, smaller population, stagger their access windows, and let the queue throttle how many people enter the actual purchase flow per second.

The theory broke on two fronts. First, Ticketmaster had issued 1.5 million Verified Fan codes โ€” but got requests from roughly 14 million people, many of them bots or bot-assisted scalpers hammering the system alongside real fans, because the 'verification' wasn't as selective as advertised. Second, and more technically interesting: even legitimate, throttled queue traffic still has to hit a real backend eventually โ€” inventory checks, seat-locking, payment processing โ€” and those backend systems had their own TTLs, their own locks, their own single points of failure. The queue controlled the front door. It didn't protect the database. Ticketmaster's own postmortem admitted bots got so aggressive they "had to pause the sale" โ€” effectively hitting an emergency brake because the mitigation layer was itself being overwhelmed.

The Kernel Already Knew About This

Here's the thing: this exact problem, at a much smaller scale, lived inside the Linux kernel for decades. Before Linux 3.9 (2013), when multiple worker processes all called accept() on the same listening socket, the kernel would wake up every single one of them when a connection arrived โ€” even though only one process could actually accept it. The rest woke up for nothing, burned a context switch, and went back to sleep. Under high connection rates, this wasted enormous CPU.

The fix was SO_REUSEPORT, introduced by Google engineers (Tom Herbert among them) specifically to kill this pattern. Instead of one shared listening socket with a herd of waiters, each worker process gets its own socket, and the kernel load-balances incoming connections across them using a hash โ€” so exactly one process is woken per connection. No herd, no waste. It's a small, elegant fix, and it's one of the most direct illustrations that 'thundering herd' isn't a metaphor invented for Ticketmaster memes โ€” it's a named, studied failure mode with a 40-year paper trail.

The Fixes That Already Existed

By 2022, the industry had five well-known patterns for exactly this problem. Ticketmaster's failure wasn't a lack of theory โ€” it was a failure of applying it at sufficient depth.

Probabilistic early expiration (XFetch). Instead of letting a cache key expire at a hard deadline, each request that reads the key calculates a probability of refreshing it early, proportional to how close it is to expiry and how long the last recompute took. The math (from a 2015 Vattani/Chierichetti/Lowenstein paper) spreads refreshes out across time instead of synchronizing them to a single instant. No more simultaneous expiry, no more simultaneous stampede.

Request coalescing / single-flight. If 1,000 concurrent requests want the same uncached key, don't send 1,000 queries to the database โ€” send one, and let the other 999 wait on that one result. Go's singleflight package, Caffeine's cache loader in Java, and Varnish's request collapsing all implement this directly. It's arguably the single highest-leverage fix for stampedes, because it converts N redundant backend calls into 1.

Lock-then-fetch. Use something like SETNX in Redis as a mutex: the first request to notice a cache miss acquires a lock and repopulates the value; everyone else either waits briefly or serves stale data until the lock releases. Crude, but effective, and it's what countless homegrown caching layers reinvent independently.

Stale-while-revalidate. Standardized right into the HTTP Cache-Control header. Serve the stale, expired value immediately to the user while kicking off exactly one background refresh. Every modern CDN โ€” Cloudflare, Fastly, Akamai โ€” implements this. The user never sees the gap; the origin never sees the herd.

Admission control via queueing. This is the pattern Ticketmaster was trying to use: don't let demand hit the backend at all past a certain rate. Virtual waiting rooms (Queue-It, Akamai's Edge Workers-based queueing) hold users at the edge, assign them a position, and release them into the actual transaction flow at a fixed, sustainable rate โ€” closer to a leaky bucket than an open floodgate.

When It's Done Right: The Super Bowl Problem

Contrast Ticketmaster with how the Super Bowl survives tens of millions of concurrent streams on Amazon's platforms. The trick isn't just more servers โ€” it's shape. AWS Elemental transcodes the live feed into adaptive bitrate renditions once, then CloudFront fans it out through a tiered cache hierarchy: edge locations pull from regional mid-tier caches, which pull from a small number of 'origin shield' nodes, which pull from the actual origin exactly once per asset, globally โ€” collapsing what could be millions of origin requests into a handful. It's request coalescing, applied at CDN scale. Cloudflare's anycast network does something structurally similar for DNS and L4 load balancing: the same IP address is announced from hundreds of locations, and routing โ€” not application logic โ€” spreads the herd before it ever becomes one.

LinkedIn learned the inverse lesson the hard way in 2018, when a single bad configuration push caused every application server to flush its local cache simultaneously. Thousands of machines, in the same second, declared their caches cold and thundered onto the database tier together โ€” a self-inflicted stampede with no external trigger at all, just synchronized state.

The Legacy

Ticketmaster's November wasn't a freak event. It was a 40-year-old, well-documented failure mode, playing out in front of 14 million witnesses and, eventually, the United States Senate. The fixes aren't exotic โ€” they've been sitting in kernel source code, CDN documentation, and caching libraries for years. The real lesson engineers should take from the Eras Tour meltdown isn't about ticket scalpers or bots. It's this: your system is never tested by the average. Average load is what you provision for. The spike โ€” synchronized, simultaneous, and merciless โ€” is what you actually have to architect for. Capacity planning asks 'how much traffic can we handle?' Thundering herd engineering asks a harder question: 'what happens the instant everyone arrives at once?' Ticketmaster found out live, on stage, in front of the whole internet.

โœ๏ธ
Written by Swayam Mohanty
Untold stories behind the tech giants, legendary moments, and the code that changed the world.

Keep Reading