Bugpit

Lessons › Real apps

GTA VI: launch night

GTA VI unlocks at midnight, one region at a time. Its 212 GB are already on every console from the pre-load, but the moment the clock strikes, a whole region presses Start together: 40,000 req/s. Half are pieces of the day-one patch and news images, 40% are sign-ins and profiles, and 10% are saves and telemetry. Right now all of it hits your own servers and one SQL database.

Play this level

Part of Bugpit Pro. It runs in your browser: build the design, press Run, and watch what breaks.

The lesson

The biggest job of launch night happened a week earlier. A 212 GB game can't be sent to millions of consoles in one night, so the pre-load spreads it over days and the console stores' CDNs carry it. What's left tonight is a small patch, and files that never change belong on a CDN with object storage behind it, never on your servers.

The second trick is the clock. The game unlocks at midnight local time, starting in New Zealand and moving west across about 15 windows. One worldwide crowd becomes many smaller ones, hours apart. You size for one region's midnight, not for the whole planet at once.

Pressing Start is a read: who are you, and do you own the game? An Auth Service checks every request, and the answer stays the same all night, so a cache keeps it in memory instead of asking the database again and again.

Then the writes, and two kinds hide in them. A save must never be lost: in 2013 GTA Online players lost cars, cash and characters in launch week. Telemetry, like crashes, progress and frame rates, is huge but can arrive late, so consoles batch many events into each upload. Put every event on one event stream, so a burst waits instead of failing, and give it two readers: one writes saves to a NoSQL store by player id, the other loads everything into a data warehouse.

Keep the extras off the critical path. When GTA Online's servers struggled in 2013, Rockstar switched off in-game purchases to keep the game up. If analytics falls behind tonight, people should keep playing: the stream holds the events until it catches up.

What you have to achieve

40,000 requests a second at the busiest hour, 10% of them writes and 50% static files.

What you learn

Look where the night's work went: the pre-load and the CDN carried the bytes, the regional unlock split the crowd, the cache answered the sign-ins, and the stream took the writes at its own pace. A launch that looks impossible is mostly work moved earlier, closer to players, or later. And remember GTA Online's loading screen: a 10 MB list parsed over and over made PC players wait minutes until a fan found it in 2021. Sometimes the slowest part is your own code.

The real numbers behind it

Check yourself

GTA VI is 212 GB. How does it reach millions of consoles without melting the network on launch night?

Show the answer

A pre-load spread over days, carried by the console stores' CDNs. The bytes moved a week early and from caches near each player. Launch night only had a small patch left.

Why unlock at midnight local time, one region after another?

Show the answer

To split one worldwide crowd into many smaller ones, hours apart. About 15 windows from New Zealand westward. You size for one region's midnight, not the whole planet at once.

Saves and telemetry read the same event stream. What happens if the data warehouse falls behind?

Show the answer

Its events wait in the stream, and players keep playing. Each reader of a stream keeps its own place. The slow one catches up later, and the saves never waited for it.

Try it yourself

More in Real apps

← ChatGPT: 2.5 billion prompts a day Fortnite: 3.4 million at once →