Skip to content

MMO Server Architecture: Gateways, Zones, Databases and the Single-Shard Dream

How an MMO splits its work: login gateways, zone servers, a persistent database and the choice between many shards and one shared universe like EVE Online.

0
EVE Online promotional image

CCP Games

An MMO has one big job: keep thousands of players in one persistent world, and never lose their progress. No single machine can do that, so the work is split into parts. This article walks through the common parts and then looks at one famous exception, EVE Online. MMO designs vary a lot, and many studios do not publish theirs, so treat this as a general map, not a recipe.

The usual building blocks

  • Gateway and auth: the front door. It checks logins and decides which game server a player connects to.
  • Game or zone servers: run the simulation for part of the world: movement, combat, AI.
  • Database: stores characters, items and the economy. Servers save to it, and it survives crashes.
  • Management layer: tracks which servers are alive and what each one runs.

A developer write-up of a Godot MMO shows these parts in a small, real design. An auth server handles register and login. A "server manager" is the central hub and accepts connections only from trusted addresses. Game servers are grouped into collections that each stand for a world, and each zone runs on its own instance behind Nginx. The author started with one server for every zone, then added sharding so load could spread across servers and players could move between zones on different machines. This is one hobby-scale project, so it shows the shape of the idea, not what big studios do.

Two ways to split the world

  • By space (zones): each server owns an area. Simple, but one busy area can overload its server.
  • By copy (shards or realms): many separate copies of the world. Easy to scale, but players on different shards cannot meet.

EVE Online: one universe, no shards

EVE chose the hard path. A High Scalability article says the same cluster handles the entire EVE universe. Public-facing proxy servers take player connections. The universe is spread across roughly 90 to 100 "SOL" blades with two nodes each, and busy systems like Jita get dedicated hardware. A database cluster on SSDs holds most state, and game logic runs in Stackless Python. The page quotes figures like up to 40,000 concurrent users and 250 million transactions per day. Those figures are old, so they describe EVE in that era, not today.

A 2013 PC Gamer feature adds that CCP split services that once shared a node so each could run alone, and gave heavy ones like market and character nodes their own hardware. During the Burn Jita event, Jita moved to a dedicated node with time dilation, which slows the simulation so the server can keep up.

The trade-offs

  • Shards are easier to build and scale. Players can be split from friends.
  • One universe gives a shared economy and huge battles, but needs a hard-working database and careful hot-spot handling.
  • Hot spots (a capital city, a big battle) break even good designs. Plan for them early: dedicated nodes, queues or slowdown.

If you are building your own, start small: a login server, one zone server and a database you can restore. Add sharding only when a real bottleneck shows up.

Sources: Kitemetric (Godot MMO architecture), High Scalability (EVE Online architecture), PC Gamer (Tranquility, 2013).

Keep reading

Comments

0

No comments yet — be the first.

More from Game Development

See all