Matchmaker

Note: The content on this page pertains to Managed Game Server Hosting (Clanforge). If you’re using Game Server Hosting (Multiplay), refer to the Game Server Hosting (Multiplay) documentation.

To run a multiplayer game, you need the following components:

  • Players running the game client. The game client is the game the player installs on the console, PC or mobile.
  • A game server that runs at a different location from the game client. The server is what the player connects to to play their multiplayer game session.

In addition to running game clients and game servers, multiplayer games can optionally implement a matchmaking component, which is the action of grouping players together for a game session.

While you can use alternate matchmaker solutions with Game Server Hosting, Unity offers a matchmaker service built to simplify the design and operation of grouping players together, and is fully integrated with Game Server Hosting's scaling platform.

Matchmaker flow

Players running a multiplayer game need their game client to connect to a game server so they can play a game session. The following diagram shows a typical matchmaker process to accomplish this connection.

Typical matchmaker process
  1. Players connect to a matchmaker to place them into a game session. In an allocation-based process, the matchmaker groups together players to give them the best possible game session based on criteria like skill and location.
  2. After the matchmaker identifies a suitable group of players for a game, it needs to find a game server to host the session. The matchmaker calls Game Server Hosting's API to find the best available game server.
  3. Game Server Hosting finds the best game server to meet the request from the matchmaker, and sends these details back to the matchmaker.
  4. The matchmaker provides these details back to the game client.
  5. The game client can now use the received information to connect to the game server.