Discover how Edgegap works

Discover how Edgegap works

Game Backend Deep Dive: World of Warcraft

Published

Published

Published

Key Insights

Key Insights

Key Insights

In short: At GDC 2021, two engineers from World of Warcraft’s server team walked through four live incidents from 15 years of running the game: crowds that overloaded a realm, a launch that design changes couldn’t fix, a new feature that overloaded the database, and a guild update that went smoothly because of how it was tested and shipped. Each story ends with what the team changed in its tools and process afterward.

  • Player density is an n² problem: 1,000 players in one place means roughly a million update messages per frame, and WoW Classic kept the Gates of Ahn’Qiraj online in 2020 by dropping low-value movement and facing updates.

  • Design fixes can move the bottleneck: Warlords of Draenor’s launch stabilized only after Blizzard ran multiple copies of Draenor per realm, which meant installing more RAM in servers around the world.

  • Capacity caps have side effects: Lowering realm caps created long queues, and players who got in stayed logged in longer to keep their slot.

  • Database load rarely has a single cause: Wrath of the Lich King’s achievements turned a read-heavy database write-heavy, and recovery came from many small fixes plus relaxed commit durability.

  • Layered testing and kill switches calm launches: Battle for Azeroth’s guild conversion backed up a proxy at go-live, and a built-in disable let players keep playing while engineers fixed it.

Kurtis McCathern, then Principal Software Engineer at Blizzard Entertainment (as credited at GDC 2021) and now Engineering Chef at Magic Soup Games, and Joseph Cochran, Senior Software Engineer at Blizzard Entertainment, shared their server team’s war stories at GDC 2021 in War Stories from Azeroth: 15 Years of Server Engineering on a Successful MMO. Presented in 2021, the talk walks through live incidents from 2006 to 2020 and how each one changed World of Warcraft’s tooling and process. Several of the stories predate cloud infrastructure, which the speakers point out themselves.

The talk covers these World of Warcraft releases, in the order presented:

  • Gates of Ahn’Qiraj: patch 1.9 (January 3, 2006), revisited in WoW Classic (July 28, 2020)

  • Warlords of Draenor: November 13, 2014

  • Wrath of the Lich King: November 13, 2008

  • Battle for Azeroth: August 14, 2018

  • Shadowlands: November 23, 2020 (a short closing story)

Indirectly, this highlights best practices that any game studio, big or small, can add to their multiplayer to help keep its servers up when everyone logs in at once.

[Editor’s note] Given the scope of Kurtis and Joseph’s presentation, we’ve included the presenters’ main takeaway at the top of each section to help with readability.

Gates of Ahn’Qiraj: When the Whole Realm Shows Up

Main takeaway: Expect players to gather in one place, and keep events from depending on it. The team now builds in timed advances so events finish even when servers struggle, spreads content across the world, and, in 2020, chose which updates to drop under load.

In 2006, Blizzard designed the Gates of Ahn’Qiraj as a massive event for an entire realm. Both factions gathered war supplies until a server-wide war unlocked at a set time, and anyone on the realm could join the fight.

That collided with what McCathern calls the update problem. Every client needs to hear about every other player around it, so n players generate n² messages. Four players means 16 messages per frame. A 6v6 game like Overwatch means 144. At 1,000 players, it’s a million, and McCathern said he isn’t aware of any service that can deliver that per frame.

The event made it worse. There was no streaming, so the only way to watch was to be there as a full participant. Players even rolled new characters on realms about to open the gates. Servers overloaded, lagged and crashed.

The usual mitigations didn’t exist yet. WoW had no update throttling, no way to run multiple copies of the zone, and no way to shrink the area of interest (AOI, the radius in which a client receives updates about others, normally 100 to 150 yards). What it did have were GameMaster clients. So GameMasters manually teleported “tourists” away from the event to keep realms alive.

The lessons carried forward. Later collection events like Isle of Quel’Danas and Thunder Isle had timed advances, so they would finish on schedule even if servers struggled. Content was also spread across the world instead of funneling everyone to one spot.

Fifteen years later, WoW Classic reached the same event with modern tools: pre-tests with several thousand headless clients and better profilers. Even that wasn’t enough. The team started ignoring simple facing updates, culling redundant movement updates and, under heavy load, dropping some important ones too.

McCathern showed the result with two in-game screenshots. A player’s screenshot from 2006 showed roughly 60 to 120 players at the gates, because realms couldn’t stay up with more. The 2020 screenshot showed almost a realm’s entire logged-in population in one place, with the servers staying up. They were strained, but recovered on their own once players spread out into the war.

Warlords of Draenor: When Design Fixes Moved the Bottleneck

Main takeaway: “Don’t use design to solve engineering problems.” In an MMO, lots of players will want to be in the same place, so the presenters recommend engineering for it, and keeping players informed so they can help.

By 2014, Blizzard knew launches concentrate players. Wrath of the Lich King used two starting locations, Cataclysm two starting zones, and Mists of Pandaria put each faction on a different side of the continent. These mostly worked, but any missed choke point compounded: stuck players were soon joined by everyone behind them.

For Warlords of Draenor, design built Tanaan Jungle, a single linear starting zone. Instead of looping players back through shared hubs, content flowed forward so players naturally spread out by pace, reducing overlapping AOIs. Tanaan could also run as multiple copies.

According to McCathern, the bottleneck moved further along. Any blocker after Tanaan reconcentrated players, like the Horde garrison hourglass that only one player could use at a time. Players who had enjoyed Tanaan also kept retrying instead of logging off for the night, so the servers never got a chance to recover. By McCathern’s own account, the team was not prepared.

Blizzard lowered realm concurrency caps, which helped but created long queues. One queue screen shown in the talk read position 6,443 with an estimated 1,431 minutes. Once players finally got in, many stayed logged in as long as possible to keep their slot.

The fix the team turned to was risky: run multiple copies of Draenor per realm. Unlike Tanaan, Draenor wasn’t built for it, so paradoxes and broken quests were likely. Since this was before cloud infrastructure, there wasn’t enough memory either. Blizzard’s IT physically installed more RAM in servers across the world. Some quest lines did break, but mostly off the main path, and caps could finally go back up.

“Don’t use design to solve engineering problems,” McCathern concluded. He also credited communication: some players chose to stay offline for a few days so others could get through. “Your players are your strongest allies.”

Today, the capacity WoW’s IT added by hand is typically rented on demand. More machines alone don’t solve in-world density (that’s what sharding is for), but they do remove the hardware ceiling. Edgegap’s orchestrator, for example, auto-scales to 14M CCU within 60 minutes. That matters because queues have a cost: Edgegap’s latency report found 34% player churn from waiting in queue. For more on shards and scaling, read Edgegap’s guide on MMO server architecture.

Wrath of the Lich King: The Database Bottleneck Behind Achievements

Main takeaway: When a feature changes how the database is used, there may be no single fix. The presenters describe trimming many small inefficiencies, deciding which data really needs to be saved instantly, and reviewing database performance every week afterward.

This story is about the database, not the game servers. Wrath of the Lich King (2008) introduced achievements, with triggers on nearly everything a player could do. Up to then, WoW had been a read-heavy system on its database. Achievements made it write-heavy.

The pre-patch, released about six weeks before the expansion content, made the game almost unplayable. On the heaviest databases, concurrency flat-topped for up to six hours a day, with more requests arriving than the database could serve. New enterprise database hardware takes longer than six weeks to order and install, so that wasn’t an option either.

“There wasn’t a silver bullet to fix this,” Cochran said. Instead, small inefficiencies had built up over time and only showed at production load.

Three came from how the game servers wrote to the database:

  • Day-one saves: Logging in granted every achievement a character already qualified for (levels, boss kills, quests, reputations), all saved at once. Blizzard staggered those saves over several days.

  • Saving too often: Statistics like damage dealt or copper looted were saved on every event. As Cochran explained, losing 35 copper from two seconds ago wouldn’t be the worst thing, so these moved into periodic heartbeat saves.

  • Bugs: One bug performed three copies of each save.

The rest was in the database itself. WoW runs on Oracle behind a DB proxy that acts as a write-through cache. Normally a transaction isn’t confirmed until the redo log (the on-disk record of transactions) acknowledges it. “We are not a financial institution,” Cochran noted, so the team confirmed transactions from memory and let the redo log catch up. That risks losing a few milliseconds of data, which Cochran weighed against players being unable to play.

The achievements table was also converted to an index-organized table, storing the data inside its index so each read needs one lookup instead of two. That only works for narrow tables with a single index, which achievements happened to be.

The changes lasted past the launch. As of the talk, the team still held a weekly database performance meeting to catch slow queries in development before they reach the public test realm or production.

Battle for Azeroth: Testing in Layers, Launching With a Kill Switch

Main takeaway: Treat development, testing and launch as equally important. The presenters recommend several testing layers, each catching a different kind of bug, and a way to turn off a new feature without taking the game down.

By Battle for Azeroth (2018), WoW’s architecture looked nothing like 2005’s client, realm and database. Realms spread load across a pool of servers, account data lived in shared services, and the new guild features hooked into Battle.net communities, an external system. Converting guilds also meant handling legacy guilds that hadn’t logged in since before Battle.net accounts existed.

World of Warcraft’s server architecture around 2005 and 2019. In 2005, the WoW client connected to a realm, which connected to a database. By 2019, the client connected to a realm made of a pool of servers shared through sharding, which connected to world services, account services, the database and, for guilds, the external Battle.net communities. Source: Kurtis McCathern and Joseph Cochran, War Stories from Azeroth, GDC 2021.

The feature went through several testing layers, each catching a different class of bug:

  • QA created and converted guilds by hand.

  • Automation logged in hundreds of characters at once to reproduce problems that only appear at scale.

  • Soup tasting locked most features so the team could play the patch for a few weeks, like letting a soup cook.

  • The public test realm used public login, which surfaced bugs in data policies.

  • The dark realm, a hidden realm on production hardware, let developers play their own long-time characters. That surfaced subtler issues, like blank guild rosters.

Launch itself had 24-hour shift coverage and a war room with Battle.net engineers alongside the WoW team.

There was still one problem. Old guilds couldn’t be created for testing, so conversion was never tested at scale. At go-live, loading a guild to convert it also loaded every member’s account, which backed up the proxy.

The guild feature shipped with a kill switch. Blizzard disabled guild conversion, players kept playing, and the team fixed the issue without the pressure of a broken game. Cochran described trying to build this kind of emergency safety valve into new features whenever possible.

A Few More Things

A few more best practices from Kurtis McCathern and Joseph Cochran are worth highlighting, even if more relevant to a development team of WoW’s size and history:

  • Systems before content: WoW ships each expansion’s patch about six weeks before its content, to separate technical issues from content issues. Shadowlands followed the same pattern, with its pre-patch on October 13, 2020, and release on November 23, 2020.

  • Tooling over debugging: McCathern called time spent on tooling and monitoring higher yield than time spent debugging, especially when it’s done before there’s pressure.

  • Process as resilience: Shadowlands shipped with the team working 100% from home. Because every phase (QA, soup tasting, dark realm) was already an established habit, the team knew the schedule, and the war room became a Zoom room.

This article is based on and cites the original presentation by Kurtis McCathern and Joseph Cochran, published on GDC Vault (https://www.gdcvault.com/play/1027204/War-Stories-from). All rights in the original content are owned by their respective owners.

Written by

the Edgegap Team

Get your Game Online Easily & in Minutes

Start Integrating Now!

Get your Game Online Easily
& in Minutes