LogoLogo
edgegap.comDashboard
  • 📘Learning Center
    • Getting Started
    • Unity Games
      • Getting Started - Servers
      • Developer Tools
    • Unreal Engine Games
      • Getting Started - Servers
      • Developer Tools
    • Matchmaking
      • Getting Started
      • Matchmaker In-Depth
      • Ping Beacons
    • Advanced Features
      • Apps and Versions
      • Deployments
      • Managed Clusters
  • API Reference
    • Dedicated Servers
    • Integration
    • Matchmaking
    • Peer to Peer
  • Release Notes
  • 📚Documentation
    • Sample Projects
      • Unity Netcodes
        • Unity NGO
        • Photon Fusion 1
        • Photon Fusion 2
        • Mirror
        • Mirror WebGL
        • Fishnet
        • Fishnet WebGL
        • Photon Bolt
      • Unreal Top-Down Sample
      • NuxtJS
      • Ruby On Rails
      • Unity Lobbies
      • Unity Matchmaker
    • Tools & Integrations
      • Container
        • What is Docker
        • Your First Docker
        • The Good Practices
        • SSH in Your Container
        • External Registries
          • Docker Hub
          • AWS ECR
          • GCP GCR
          • Gitlab registry
      • Deploy from Nakama
      • EOS Lobby Integration
      • Switch From Gamelift
      • Switch From Multiplay
      • Playfab Bridge
    • Deployment
      • Endpoint Storage
        • How to Save Logs
        • Upload File to Deployment
      • Webhooks
    • Application
      • Command and Arguments
      • 1:1 Port Mapping
    • Session
      • How They Work
      • Application Version Configuration
      • Manage Request
      • Selectors Filtering
    • Fleet
      • Fleet Policy
      • Policy Filter
      • Linking Version
      • Fleet's Deployment
    • Container Registry
    • Distributed Relay
      • Matchmaker/Lobby
      • Relay Edgegap API
      • Transport Samples
    • Lobby
      • Lobby Service
      • Functions
    • Glossary
    • SLA Terms
Powered by GitBook
LogoLogo

Connect with Community

  • Discord
  • Linkedin
  • X

Read More

  • Release Notes
  • Blog
  • Enterprise
  • Legal
  • edgegap.com

© 2025 Edgegap

On this page
  • ✔️ Preparation
  • Matchmaking Architecture
  • 🍀 Simple Example
  • 1. Set Up on Free Tier
  • 2. Explore Configuration
  • 3. Review Instance Details
  • 4. Test Tickets API
  • 5. Game Integration
  • 🏁 Advanced Example
  • 🎾 Custom Lobby
  • ⚔️ Competitive Games
  • 🤝 Cooperative Games
  • 🎈 Social Games

Was this helpful?

  1. Learning Center
  2. Matchmaking

Getting Started

PreviousMatchmakingNextMatchmaker In-Depth

Last updated 8 days ago

Was this helpful?

Get started with Matchmaking quickly and explore example scenarios for various genres.

See Matchmaker In-Depth for detailed explanations and more tips on customization.

Our matchmaking philosophy is driven by player perspective, with core principles of matchmaking:

  • social integration (such as friends and lobbies),

  • balance between match speed (time to play) and match quality (balanced player attributes),

  • high availability, process observability, and user-friendly error handling.

✔️ Preparation

Testing our Matchmaker is entirely free, no credit card required.

Free Tier allows up to 3 hours of runtime on our shared test cluster, after each restart.

This tutorial assumes you have already:

  • ,

  • uploaded and configured your server application on Edgegap,

    • Getting Started - Servers (Unity),

    • Getting Started - Servers (Unreal Engine),

  • successfully connected from a game client to your server on Edgegap.

For now, we’ll give you a quick tour of core Matchmaker features using , free for individuals.

Matchmaking Architecture

Understanding matchmaking architecture is easy:

Our matchmaker reference architecture involves several flows of data:

  • Deployments API is used to deploy, scale, and manage your Dedicated Servers by Matchmaker.

    • Edgegap is not involved in this communication.

This guide will focus on Matchmaking API and Backfill API.

After release, your matchmaker will need to run 24/7 to ensure players across the world can join servers.

🍀 Simple Example

Start with a simple example and test the core matchmaking player flow:

1. Set Up on Free Tier

☑️ Click on Create Matchmaker first, then input:

  • matchmaker name - for your own reference, e.g. quickstart-dev ,

  • upload our Simple Example JSON configuration.

🍀 Simple Example (Minimal Recommended Configuration):

Make sure to change the application name and version to match your Apps and Versions.

{
  "version": "2.1.0",
  "inspect": true,
  "max_deployment_retry_count": 3,
  "ticket_expiration_period": "5m",
  "ticket_removal_period": "1m",
  "profiles": {
    "simple-example": {
      "application": {
        "name": "",
        "version": ""
      },
      "rules": {
        "initial": {
          "match_size": {
            "type": "player_count",
            "attributes": {
              "team_count": 1,
              "team_size": 2
            }
          },
          "beacons": {
            "type": "latencies",
            "attributes": {
              "difference": 50,
              "max_latency": 200
            }
          }
        },
        "expansions": {}
      }
    }
  }
}
Troubleshooting: `Error with profiles. Message: The application configuration is not valid for profile XYZ.`
  • We couldn’t find your Apps and Versions, please verify your values.

☑️ If no validation errors appear, hit Create and Start and wait for the process to complete. This will result in a new free cluster starting, with your Simple Example matchmaker.

✅ You may now proceed to the next step.

2. Explore Configuration

  • 🔥 major versions include breaking changes and require integration review,

  • 🌟 minor versions include substantial backwards-compatible improvements,

  • 🩹 patch versions include bug fixes and minor improvements.

To ensure that unexpected client crashes or abandoned tickets do not linger and take up your matchmaker resources, tickets will be cancelled after ticket_expiration_period causing their status to change to CANCELLED and then permanently deleted after ticket_removal_period .

  • name of your choosing, e.g. - match size,

  • rule type, also known as operator, e.g. - player_count,

  • and lastly operator attributes, e.g. team_count or team_size.

Player Count Rule

This is a special rule defining how many players need to match to initiate assignment:

  • team_count refers to number of teams, 1 team may be used for cooperative or free-for-all modes,

  • team_size refers to the number of players per team.

Our simple example demonstrates a cooperative game with 2 players.

Player Count rule is required and may only be defined once in your initial configuration rules.

Latencies Rule

Use this rule to provide the lowest possible ping for all players. Once clients measure and submit their round-trip time (ping) against all available beacons, matchmaking will only consider matches within a specific difference in ping values, measured against Ping Beacons. This presents a “soft” solution to splitting your player base, enabling matching with neighboring regions, especially improving match speed for less populated regions.

Use max_latency to prevent matching against players located far away.

Latencies rule may only be defined once in your initial configuration rules.

✅ You may now proceed to the next step.

Our example beacons rule above with "difference": 50, "max_latency": 200 initially:

  • Alice and Bob will match, since Beijing is discarded (>200) and the rest is within | A-B | < 50:

    • Alice {Montreal: 12.3, Newark: 45.6, Dallas: 59.9, Beijing: 264.4}; and

    • Bob {Montreal: 27.3, Newark: 32.4, Dallas: 23.1, Beijing: 252.2}.

  • Charlie and Dave will not match, since | C-D | > 50 for Dallas Beacon:

    • Alice {Montreal: 5.7 Newark: 44.2, Dallas: 59.5, Beijing: 263.2}; and

    • Bob {Montreal: 57.8, Newark: 32.0, Dallas: 24.2, Beijing: 272.3}.

3. Review Instance Details

☑️ Review details of your new matchmaker in our dashboard once it’s initialized:

  • Status indicates service health, may be ONLINE, OFFLINE, or ERROR.

  • Identifier helps Edgegap staff find your matchmaker quickly if you need help troubleshooting.

  • Started at can be useful to track down the latest update time.

  • API URL will be used by Game Clients and Game Servers to communicate with your matchmaker.

  • Swagger URL is a handy openAPI specification GUI we provide to explore API schema.

  • Auth Token is a unique secret token used by Game Clients and Game Server for authentication.

Edgegap staff will never ask for your tokens. Regenerate your token if you suspect a security breach.

To test your new matchmaker, you will need the Swagger URL, API URL and Auth Token.

✅ You may now proceed to the next step.

To update your matchmaker rules in development, edit your configuration and restart it.

4. Test Tickets API

Please wait for up to 5 minutes after (re)starting your matchmaker to allow DNS propagation to complete.

☑️ First, open your Swagger URL to inspect your openAPI schema in the swagger GUI:

☑️ Click on Authorize 🔒, paste your Auth Token, and confirm by clicking on Authorize.

☑️ Scroll down to Ticket API - POST /tickets, expand and click Try it out.

  • attributes include values for your matchmaker rules, in this case for the latencies rule,

    • rule player_count is the only rule which doesn’t require any attributes in player tickets.

☑️ Click Execute and review the response to your player ticket request:

  • id is your unique matchmaking ticket ID, save this to check on your ticket later,

  • group_id is a unique group ID issued to every ticket, a solo player is represented as a group of 1,

    • each team can contain multiple groups, not exceeding the configured team size,

  • player_ip is the resolved public IP address of the player, regardless of the identification method,

  • assignment is set to null to indicate the ticket has not been matched or assigned to a server,

  • created_at provides information about when the player ticket was created for game UI usage,

  • status indicates the current status of the ticket, all tickets start in SEARCHING ,

☑️ Create a second ticket by hitting Execute again, so our two players match and a server is started.

☑️ Collapse POST /tickets and open GET /tickets/{ticketId}, then click Try it out.

☑️ Input ticket ID from the response in previous step and click Execute.

☑️ Review the updated assignment for your player ticket:

  • status changed to MATCH_FOUND first, while keeping assignment set to null to indicate players have matched and a server is being assigned,

☑️ Click Execute again to check on your ticket, and review the updated assignment for your ticket:

  • status changed to HOST_ASSIGNED with assignment containing details of the assigned server.

Troubleshooting & FAQ

My ticket is stuck in SEARCHING .

  • Please verify that you’ve created enough tickets with overlapping criteria adhering to your configuration.


My ticket is stuck switching between MATCH_FOUND and TEAM_FOUND repeatedly.

  • Free Tier accounts are limited to 1 deployment at a time. Please consider upgrading or stop your current deployment to start a new one.


My ticket goes straight to CANCELLED.

  • Your ticket reached it’s expiration. Recreate a new ticket or increase the expiration period in your configuration for testing purposes.


I receive HTTP 404 Not Found when checking on my ticket.

  • Your ticket was removed either by a DELETE request, or by reaching it’s removal period (starts after ticket is expired, defined in your configuration). Recreate a new ticket or increase the expiration/removal periods in your configuration for testing purposes.

  • notice each deployment is tagged with all ticket IDs and profile for added traceability.

☑️ Try connecting from your game client to the assigned server.

The external port of your Deployment on Edgegap cloud will be chosen at random, so that a potential attacker (hacker) is slowed down and detected before they can cause damage.

☑️ Once you verify you’re able to connect to your Deployment without issues and are done testing, Stop your Deployment to free up capacity in your account for the next build.

✅ You may now proceed to the next step.

Find the openAPI specification for testing at {matchmaker-url}/swagger/v1/swagger.json.

5. Game Integration

As indicated by Matchmaking Architecture above, Matchmaker integrates:

  • with Dedicated Server, to:

    • process player preferences passed through their tickets,

☑️ In Game Client, ensure you’re handling non-retryable errors:

  • HTTP 404 Not Found - ticket has been deleted,

  • HTTP 500 Internal Server Error - temporary service outage.

☑️ In Game Server, process player preferences and initial server context. API usage is not required:

☑️ Once players connect, Game Server and Game Clients start a loading scene to perform synchronization steps (e.g. selecting and loading a map/scene/level). We recommend a full fledged 3D scene, a lobby-like social UI, or a loading screen with a progress bar, to indicate initialization is progressing.

☑️ Once Game Clients fully loaded, players load/travel to the main gameplay scene.

  • no players join the match,

  • all players have left the match,

  • match concludes correctly.

🙌 Congratulations, you’ve completed Matchmaking integration! To learn more, keep reading.

🏁 Advanced Example

🎾 Custom Lobby

Add custom-lobby-example profile in addition to your other profiles to support custom lobbies.

⚔️ Competitive Games

Competitive games focus on players competing against each other to achieve victory, whether as individuals (free for all) or teams. Matchmaking is crucial to ensure fair and balanced matches by pairing players or teams of similar skill levels. Maintain the pace of the game by quickly finding opponents with low latency to ensure fair competition.

You may define multiple teams with 1 or more players each, e.g.:

  • 1v1 fighting game, with team count of 2 and team size of 1, require 2 players per game.

  • 5v5 FPS, with team count of 2 and team size of 5, require 10 players per game.

  • 5v5 MOBA, with team count of 2 and team size of 5, require 10 players per game.

  • 10 player free-for-all, with team count of 1 and team size of 10, require 10 players per game.

  • 20x3 battle royale, with team count of 20 and team size of 3, require 60 players per game.

  • restrict rank within a difference between two players for more casual games,

  • restrict rank difference to only allow opponents with the same rank for ranked games,

  • let players provide their map preferences and choose a map suitable for everyone,

  • slowly relax latency restrictions over time to find more players,

  • slowly increase allowed rank difference to find more players,

  • increase time between expansions for the highest ranks (challengers), as less players are available.

Create tickets with a higher rank for promotion matches, to match with tougher opponents.

Define separate cheater profiles to ensure that flagged cheaters or players with high amount of moderation reports do not negatively impact experience of healthy player segments.

🤝 Cooperative Games

With team count 1 and team size 4, require 4 players per game (all players are on the same team).

  • let players provide their map preferences and choose a map suitable for everyone,

  • let players choose a particular game difficulty to suit everybody’s skill level,

  • restrict player level difference to align players with a similar degree of game progression,

  • allow higher latency to prefer faster matches with better granular player preferences,

  • relax latency restrictions over time to find more players,

  • slowly decrease team size to require less players and start the game sooner,

    • optionally, you may have the server fill empty slots with AI teammates,

  • slowly increase allowed player level difference to find more players,

Using multiple profiles to separate casual game modes, competitive game modes, and top-tier challenger players allows you to customize rules and expansions for each type of player separately.

🎈 Social Games

With team count 1 and team size 50, require 50 players per game (all players are on the same team).

  • let players provide their game mode preferences and choose a mode suitable for everyone,

  • allow higher latency to prefer faster matches with more players,

  • quickly relax latency restrictions to find more players,

  • slowly decrease team size to require less players and start the game sooner,

    • optionally, you may have the server fill empty slots with AI players,

    • this will allow players to join existing matches over new ones to maximize social interaction.

is used by Game Clients to communicate with Matchmaker:

to check on matchmaking service status,

and to manage ,

optionally to retrieve Ping Beacons.

are used to communicate between Game Clients and Dedicated Servers:

Optionally, is used by Dedicated Servers to replace or add more players.

creating the matchmaker instance on the shared ,

defining rules and settings in your matchmaker ,

testing player flow and managing with .

☑️ and open the .

As we release updates to Matchmaker, each new version uses to clearly communicate the impact of changes by interpreting format major.minor.patch:

Use to better understand and debug possible matchmaking flows while in development. We recommend disabling inspect API for your live matchmaker.

Some . We attempt to resolve this by retrying deployment up to max_deployment_retry_count times automatically (without client confirmation).

The core of our matchmaking logic is configured in . Each profile is a completely isolated matchmaking queue, pointing to with pre-defined amount of required CPU and memory (RAM) resources.

in the initial rule set must be met for players to be grouped together, each defined by three properties:

Size corresponds to one of our .

See for live games and zero-downtime updates.

☑️ Preview your request:

notice player_ip set to null - this will cause Matchmaker to use the IP address automatically added to your request (see for alternatives),

profile refers to your ,

profile confirming the choice of ,

see for matchmaking with your friends or lobbies,

team_id is a unique team ID issued to every ticket once reaches TEAM_FOUND status,

see for grouping up players in multiple teams,

see for details.

☑️ :

If you’re experiencing high latency, your netcode integration may be configured to simulate network latency. Disable VPN when testing for more realistic conditions and receive a .

with Game Client, to manage ,

optionally to support to add or replace players after starting.

☑️ In Game Client, we recommend providing ticket status updates throughout to players using in-game UI for best player experience. See:

See for additional information regarding Matchmaker service health.

Read to retrieve initial players’ matchmaking data.

Read for version parameters, settings, and secrets.

Read for deployment information, IP, location, etc...

Get variable values using or .

☑️ Optionally, Game Server may create and manage and player capacity (add or replace players who leave).

☑️ Ensure your properly using , if:

A full fledged configuration utilizing all matchmaking features including , , with may look like this:

Custom lobbies (private lobbies, sandbox levels) are a very popular option for couch multiplayer but also testing new features in competitive or cooperative games before they enter main game modes. These games typically require the least amount of restrictions, but aim to ensure that players can .

may use Custom Lobby profiles to support inviting friends reliably.

Define multiple for game modes specific rules and settings:

add to restrict opponents to specified Ping Beacons,

restrict to a maximum threshold to prevent matching players far away,

restrict to a maximum difference to maximize ping fairness,

allocate more CPU or memory using different when more players are allowed,

for pre-made lobbies or to fill teams without exceeding team sizes.

Start with the ideal conditions, and to ensure quick matches:

Cooperative games require players to work together as a team towards a common goal. Efficient matchmaking helps align players with similar preferences, gameplay habits, replaces players who leave, and improves to provide a responsive player experience.

Define multiple for game modes specific rules and settings:

for pre-made lobbies or to fill teams without exceeding team sizes,

allocate more CPU or memory using different when more players are allowed.

Start with the ideal conditions, and to ensure quick matches:

if no teammates are found, launch the game solo and use to add players later on.

Social games focus on building connections and relationships between players. These games emphasize collaboration, communication, and shared experience in a collaborative or competitive setting. Number of players per game may be very high. Efficient matchmaking ensures player preferences and gameplay habits are aligned, replaces players who leave, maximizes player capacity usage per server, and improves to provide a responsive player experience.

Define for game modes specific rules and settings:

for pre-made lobbies or to fill teams without exceeding team sizes,

add to restrict opponents to specified regions,

allocate more CPU or memory using different when more players are allowed.

to ensure quick matches:

if no teammates are found, launch the game solo and use to add players later on,

📘
Netcode Transports
Register for your free Edgegap account
Matchmaker dashboard page
Pricing Tiers
Inspect your new deployment in our dashboard
GetEnvironmentVariable in C#
GetEnvironmentVariable in C++
Postman - a handy tool for testing APIs
deployment will be stopped
📍 Hub Selection UI
🟢 Connection Quality
🟢 Connection Quality
🗺️ Region Selection UI
🏷️ App Versions
🏷️ App Versions
🏷️ App Versions
📗 Matchmaking API
Endpoint /monitor
Endpoint /tickets
Endpoint /group-tickets
🎫 Player Tickets
Endpoint /locations/beacons
Backfill
☁️ Hosting Cluster
📏 Configuration
🎫 Player Tickets
📗 Matchmaking API
Semantic Versioning
Inspect API
🏷️ App Versions
Matchmaking Profiles
Matchmaking Rules
Rolling Updates & AB Tests
🎫 Player Tickets
Server to Server Integration
Matchmaking Profiles
Matchmaking Profiles
Join as Group
Matchmaking Process
Matchmaking Teams
Matchmaking Process
🎫 Player Tickets
Backfill
Matchmaking Process
Endpoint /monitor
Backfill
Matchmaking Profiles
Application and Versions
Matchmaking Rules
Rule Expansion
Join as Group
Backfill
Matchmaking Profiles
Join as Group
Matchmaking Profiles
Join as Group
Backfill
Matchmaking Profiles
Join as Group
Backfill
matchmaking latency
matchmaking latency
Injected Environment Variables (App Versions)
Injected Environment Variables (Matchmaker)
expand restrictions
expand restrictions
Expand restrictions
🎾 Custom Lobby Example
{
  "version": "2.1.0",
  "inspect": true,
  "max_deployment_retry_count": 3,
  "ticket_expiration_period": "5m",
  "ticket_removal_period": "1m",
  "profiles": {
    "custom-lobby-example": {
      "application": {
        "name": "my-game-server",
        "version": "2024.01.30-16.23.00-UTC"
      },
      "rules": {
        "initial": {
          "match_size": {
            "type": "player_count",
            "attributes": {
              "team_count": 1,
              "team_size": 4
            }
          },
          "lobby_id": {
            "type": "string_equality"
          }
        },
        "expansions": {}
      }
    }
  }
}
  • Unreal Engine :

    • (free for Personal use),

    • and customize for your needs.

🎈 Social Game Example
{
  "version": "2.1.0",
  "inspect": true,
  "max_deployment_retry_count": 3,
  "ticket_expiration_period": "5m",
  "ticket_removal_period": "1m",
  "profiles": {
    "social-example": {
      "application": {
        "name": "my-game-server",
        "version": "2024.01.30-16.23.00-UTC"
      },
      "rules": {
        "initial": {
          "match_size": {
            "attributes": {
              "team_count": 1,
              "team_size": 30
            },
            "type": "player_count"
          },
          "beacons": {
            "attributes": {
              "difference": 80,
              "max_latency": 80
            },
            "type": "latencies"
          },
          "selected_region": {
            "type": "string_equality"
          },
          "selected_mode": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          }
        },
        "expansions": {
          "10": {
            "beacons": {
              "difference": 100,
              "max_latency": 100
            },
            "match_size": {
              "team_count": 1,
              "team_size": 20
            }
          },
          "15": {
            "beacons": {
              "difference": 120,
              "max_latency": 120
            },
            "match_size": {
              "team_count": 1,
              "team_size": 10
            }
          },
          "25": {
            "match_size": {
              "team_count": 1,
              "team_size": 4
            }
          },
          "30": {
            "match_size": {
              "team_count": 1,
              "team_size": 1
            }
          }
        }
      }
    }
  }
}
install from Fab Marketplace
download example project
⚡ Edgegap Integration Kit by Betide Studio
🤝 Cooperative Game Example
{
  "version": "2.1.0",
  "inspect": true,
  "max_deployment_retry_count": 3,
  "ticket_expiration_period": "5m",
  "ticket_removal_period": "1m",
  "profiles": {
    "cooperative-example": {
      "application": {
        "name": "my-game-server",
        "version": "2024.01.30-16.23.00-UTC"
      },
      "rules": {
        "initial": {
          "match_size": {
            "type": "player_count",
            "attributes": {
              "team_count": 1,
              "team_size": 4
            }
          },
          "beacons": {
            "type": "latencies",
            "attributes": {
              "difference": 60,
              "max_latency": 60
            }
          },
          "selected_map": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          },
          "selected_difficulty": {
            "type": "string_equality"
          },
          "player_level": {
            "type": "number_difference",
            "attributes": {
              "max_difference": 10
            }
          }
        },
        "expansions": {
          "5": {
            "beacons": {
              "difference": 80,
              "max_latency": 80
            }
          },
          "10": {
            "player_level": {
              "max_difference": 20
            }
          },
          "20": {
            "match_size": {
              "team_count": 1,
              "team_size": 3
            },
            "beacons": {
              "difference": 100,
              "max_latency": 100
            }
          },
          "30": {
            "match_size": {
              "team_count": 1,
              "team_size": 2
            },
            "beacons": {
              "max_latency": 200
            }
          },
          "60": {
            "match_size": {
              "team_count": 1,
              "team_size": 1
            }
          }
        }
      }
    },
    "cheater-example": {
      "application": {
        "name": "my-game-server",
        "version": "2024.01.30-16.23.00-UTC"
      },
      "rules": {
        "initial": {
          "match_size": {
            "type": "player_count",
            "attributes": {
              "team_count": 1,
              "team_size": 4
            }
          },
          "beacons": {
            "type": "latencies",
            "attributes": {
              "difference": 60,
              "max_latency": 60
            }
          },
          "selected_map": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          },
          "selected_difficulty": {
            "type": "string_equality"
          },
          "player_level": {
            "type": "number_difference",
            "attributes": {
              "max_difference": 10
            }
          }
        },
        "expansions": {
          "5": {
            "beacons": {
              "difference": 80,
              "max_latency": 80
            }
          },
          "10": {
            "player_level": {
              "max_difference": 20
            }
          },
          "20": {
            "match_size": {
              "team_count": 1,
              "team_size": 3
            },
            "beacons": {
              "difference": 100,
              "max_latency": 100
            }
          },
          "30": {
            "match_size": {
              "team_count": 1,
              "team_size": 2
            },
            "beacons": {
              "max_latency": 200
            }
          },
          "60": {
            "match_size": {
              "team_count": 1,
              "team_size": 1
            }
          }
        }
      }
    }
  }
}
  • Unity by Edgegap:

    • ,

    • and customize for your needs,

🏁 Advanced Example (Complete Example Configuration)
{
  "version": "2.1.0",
  "inspect": true,
  "max_deployment_retry_count": 3,
  "ticket_expiration_period": "5m",
  "ticket_removal_period": "1m",
  "allowed_cors_origins": ["https://*.my-game-server.com"],
  "profiles": {
    "advanced-example": {
      "application": {
        "name": "my-game-server",
        "version": "2024.01.30-16.23.00-UTC"
      },
      "rules": {
        "initial": {
          "match_size": {
            "type": "player_count",
            "attributes": {
              "team_count": 1,
              "team_size": 4
            }
          },
          "beacons": {
            "type": "latencies",
            "attributes": {
              "difference": 50,
              "max_latency": 80
            }
          },
          "elo_rating": {
            "type": "number_difference",
            "attributes": {
              "max_difference": 50
            }
          },
          "selected_game_mode": {
            "type": "string_equality"
          },
          "selected_map": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          },
          "selected_region": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          }
        },
        "expansions": {
          "5": {
            "elo_rating": {
              "max_difference": 100
            }
          },
          "10": {
            "elo_rating": {
              "max_difference": 200
            },
            "beacons": {
              "difference": 100,
              "max_latency": 250
            }
          },
          "20": {
            "match_size": {
              "team_count": 1,
              "team_size": 3
            }
          },
          "30": {
            "match_size": {
              "team_count": 1,
              "team_size": 2
            }
          },
          "60": {
            "match_size": {
              "team_count": 1,
              "team_size": 1
            }
          }
        }
      }
    }
  }
}
⚔️ Competitive Game Example
{
  "version": "2.1.0",
  "inspect": true,
  "max_deployment_retry_count": 3,
  "ticket_expiration_period": "5m",
  "ticket_removal_period": "1m",
  "profiles": {
    "casual-example": {
      "application": {
        "name": "my-game-server",
        "version": "2024.01.30-16.23.00-UTC"
      },
      "rules": {
        "initial": {
          "match_size": {
            "type": "player_count",
            "attributes": {
              "team_count": 2,
              "team_size": 5
            }
          },
          "beacons": {
            "type": "latencies",
            "attributes": {
              "difference": 25,
              "max_latency": 100
            }
          },
          "league_rank": {
            "type": "number_difference",
            "attributes": {
              "max_difference": 1
            }
          },
          "selected_maps": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          },
          "selected_beacons": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          }
        },
        "expansions": {
          "10": {
            "beacons": {
              "difference": 40,
              "max_latency": 150
            }
          },
          "30": {
            "beacons": {
              "difference": 50
            }
          },
          "60": {
            "league_rank": {
              "max_difference": 2
            }
          },
          "180": {
            "beacons": {
              "difference": 100,
              "max_latency": 500
            }
          }
        }
      }
    },
    "competitive-example": {
      "application": {
        "name": "my-game-server",
        "version": "2024.01.30-16.23.00-UTC"
      },
      "rules": {
        "initial": {
          "match_size": {
            "type": "player_count",
            "attributes": {
              "team_count": 2,
              "team_size": 5
            }
          },
          "beacons": {
            "type": "latencies",
            "attributes": {
              "difference": 25,
              "max_latency": 100
            }
          },
          "league_rank": {
            "type": "number_difference",
            "attributes": {
              "max_difference": 0
            }
          },
          "selected_maps": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          },
          "selected_beacons": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          }
        },
        "expansions": {
          "30": {
            "beacons": {
              "difference": 40,
              "max_latency": 150
            }
          },
          "60": {
            "beacons": {
              "difference": 50
            }
          },
          "180": {
            "beacons": {
              "max_latency": 250
            }
          }
        }
      }
    },
    "challenger-example": {
      "application": {
        "name": "my-game-server",
        "version": "2024.01.30-16.23.00-UTC"
      },
      "rules": {
        "initial": {
          "match_size": {
            "type": "player_count",
            "attributes": {
              "team_count": 2,
              "team_size": 5
            }
          },
          "beacons": {
            "type": "latencies",
            "attributes": {
              "difference": 25,
              "max_latency": 100
            }
          },
          "league_rank": {
            "type": "number_difference",
            "attributes": {
              "max_difference": 0
            }
          },
          "selected_maps": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          },
          "selected_beacons": {
            "type": "intersection",
            "attributes": {
              "overlap": 1
            }
          }
        },
        "expansions": {
          "30": {
            "beacons": {
              "difference": 40,
              "max_latency": 150
            }
          },
          "180": {
            "beacons": {
              "difference": 50
            }
          },
          "240": {
            "beacons": {
              "max_latency": 250
            }
          }
        }
      }
    }
  }
}
install package using Unity Package Manager for free
import simple example
⭐ Matchmaking SDK
Injected Environment Variables
understood Edgegap’s “just in time” deployment model
deployments may result in Errors
low-latency deployment
Injected Environment Variables (Deployment)