Deployments
Learn about deployments and their lifecycle - concepts and best practices for deeper understanding.
🗺️ Orchestration
Start new servers within seconds to meet capacity demands with our cloud native edge computing approach. We treat servers as cattle rather than pets - replacing faulty instances entirely instead of nursing each one manually.
Most games don’t fit perfectly in a box. Reach out over Discord to learn about hybrid orchestration options.
To fully understand all pros and cons, let’s compare various orchestration methods.
Match-Bound
Golden standard for modern studios providing the easiest integration with best cost efficiency.
👍 Advantages
Best cost efficiency - scaling in real time to meet player demand minute by minute.
Lowest devops cost due to region-less hosting, Edgegap automates 99% of tasks.
Lowest ping due to 615+ sites in Edgegap’s public cloud infrastructure.
Fastest scale up (burst-ability) in case of unexpected traffic spike.
Highest standard of security and player cheating prevention (server authority).
Minimal impact of unexpected server crash on players, only affecting a single match.
👎 Disadvantages
Adopting a new orchestration mental model requires some ramp up effort initially.
Servers running longer than 24 hours will be automatically terminated.
🧩 Best Suited For
Latency-sensitive games - when netcode optimization can't overcome high ping:
First Person Shooters, Fighting Games, VR & XR (virtual and extended reality), …
Games with an upper limit on match duration by design,
Battle Royale, , Coop Shooters, MOBA, Sports Games, ARPGs & Dungeon Crawlers, …
🔎 Discoverability
Start new games when sufficient players join Matchmaking.
Add players to replace leavers in existing matches with backfill.
Let players browse servers and pick from a list with Server Browser.
Regional Standby
Traditional model for persistent worlds with user-generated content and social MMO games.
👍 Advantages
Familiar and easy to understand, old-school approach for battle-scarred veterans.
Highest standard of security and player cheating prevention (server authority).
Easily predictable cost based on monthly commitment.
👎 Disadvantages
Higher hosting cost - each region requires one or more idle standby servers (burst capacity).
Higher devops cost - scaling, operations, and maintenance duplicated per region.
Regions with smaller player base experience high ping due to joining servers far away.
🧩 Best Suited For
Persistent worlds with user-generated content stored on server even when players go offline.
MMOs, Sandboxes with base building or object placement, Extraction Shooters, ...
latency-tolerant games - when server authoritative real-time physics aren’t required:
mobile games, Coop Games, TCGs/CCGs, Turn-Based Strategies, …
Asynchronous multiplayer, where server crashes have minimal impact on player experience:
race against ghosts, loot enemy base, timer-based building/farming games, …
applications with heavy initialization process - when preparing servers takes minutes.
🔎 Discoverability
Let players browse servers and pick from a list with Server Browser.
Peer to Peer
Shift development efforts from dedicated servers to relay netcode for non-competitive games.
Related topics: listen servers, player-host authority, NAT punch-through.
👍 Advantages
Lowest hosting cost, requiring only Relay servers to solve NAT punch-through.
Lowest devops cost - maintenance required only for client builds and distribution channels.
Minimal impact of unexpected server crash on players, only affecting a single match.
Easy to implement and fast time to prototype, without any backend development required.
👎 Disadvantages
Increased peer-to-peer netcode development effort requiring concurrent programming skills.
Worst ping times and most sensitive to unfavorable network conditions (e.g. mobile internet).
Weakest security, vulnerable to man-in-the-middle attacks and session hijacking.
Risk dropping sessions when host leaves unless you implement custom host migration.
🧩 Best Suited For
Coop & casual games - when cheating doesn’t take away from fun or break the game,
Kids Games, Exploration Games, Adventures, …
🔎 Discoverability
See our Distributed Relays for service enabling peer to peer with best in class latency and security.
📍 Server Placement
No matter which orchestration method you choose, picking the right server location for a group of players is critical in ensuring the best possible ping, and optimal player experience. Learn about different strategies for server placement, and how they impact your players.
Edgegap deploys in the best possible location with available capacity, for fast and low-latency matches.

Server Score
Server score strategy uses Edgegap’s patented methodology, which optimizes placement of servers for each match individually. Performs non-intrusive telemetry to approximate each player’s network proximity to our server locations and choose the server which delivers best:
responsiveness - provides lowest ping for all players on average,
fairness - provides a balanced and fair ping for all players.
Our Matchmaker uses Server Score strategy by default, to ensure best possible experience. To use this strategy with Deploy APIs, input players’ public IPs or geo coordinates in your deploy request.
Unresponsive placement - server is far away, high ping for all players:

Unfair placement - uneven ping, one player is at a disadvantage:

Good placement example - responsive and fair ping for all players:

Geolocation
Alternatively, provide players' latitude & longitude coordinates or coordinates of a preferred server location instead of leveraging automated telemetry. This approach requires additional client-side geo-lookup implementation, fully relying on game developer’s solution.
Geolocation strategy is not recommended for Match-Bound orchestration, except for applications with strict regulatory requirements for inter-regional data transfers, or when player IP is unavailable.
To use this strategy with Deploy APIs, list players’ public IPs or geo coordinates in your deploy request.
Region Lock
Servers may be placed using a crudely generalized region parameter, either:
automatically chosen for the player, based on their metadata (player account database), or
selected by the player during matchmaking, allowing placement with high client-server latency.
Using this strategy alone is not recommended as it may result in poor network performance.
Using region selection as a pre-filter in combination with another strategy is a better alternative.
🟢 Connection Quality
Some games (and some players) are more sensitive to latency or lag than others. While player reports are a great indicator of incidents or regression bugs at scale, players may lack deep understanding of networking concepts and are quick to assign blame to studios, netcode, or servers.
Root cause of some issues may be hidden from players, so cooperation of studio and hosting provider may be crucial. Edgegap’s priority is always to provide the best possible service.
If you’re receiving numerous player reports, experiencing widespread outages, or repeated issues, please reach out to us immediately through a support ticket in our platform.
Low Latency
Player latency is a combination of latency from transferring data between:
physical devices - the physical signal travelling across Internet networking topology,
host to host - resulting from protocol, transport, and security measures,
process to process - resulting from (un)boxing and processing data in client/server.
Edgegap reduces physical latency by placing servers closer to your players for shorter responses and lower number of network hops. With locations across 17 cloud and bare metal providers, you get best-in-class ping for players anywhere in the world.
Server and internet coverage globally (not only with Edgegap) is limited due to factors like:
infrastructure availability - internet connection quality in a given region may not be sufficient,
natural factors - highly complex server racks require mostly stable environment.
High Availability
Availability of servers in various locations around the world will vary over time, changing multiple times throughout the day. Edgegap automatically scales up/down locations on demand, considering:
burst traffic - deployments made within a 15 minute period,
vCPU requirements - more vCPU per deployment increases overall demand for specific location,
provider offering - some remote locations have less provider options available,
machine availability - some locations may only offer 4 vCPU or 8 vCPU machines,
studio requests for testing, quality assurance, early access, closed betas, or tournaments.
All applications' deploy requests are combined to assess location demand. All organizations have equal allocation priority by default, with the possibility to add private server pools for enterprise customers requiring specific hardware or locations.
Please reach out to us to plan a release, or if you have any requests regarding location availability.
Player Issue Resolution
Player issues may be rooted in server bugs or provider incidents, but may also arise from third parties such as local ISPs, game services, bugs in low level libraries, infrastructure providers, or other sources.
When troubleshooting player reports or incidents, consider factors:
matchmaking quality - players should be close to each other (same region) for 📍 Server Placement to yield best results:
see Matchmaking and Ping Beacons for our recommendations,
see In-Depth Look to learn how to find server logs related to player reports,
regional issues:
localized Internet Service Providers (ISPs) may be resolving an incident momentarily,
some regions (e.g. China, Russia) may be restricted due to localized sanctions,
caching level - Edgegap will prioritize fast deployments in cached locations:
maximum time to deploy - deployments may fail due to slow and heavy initialization process:
see Safety Guardrails to increase the timeout period,
delay initialization steps until absolutely necessary,
server image or integration issues.
Display deployment IDs in client match history UI to trace player reports when troubleshooting.
🔄 Deployment Lifecycle
Edgegap deployments go through several lifecycle stages, denoted by deployment status.
1. Start a Deployment
A deployment for testing purposes may be started with:
Unreal Engine - Docker Extension or plugin for Unreal Engine projects,
Unity - plugin for Unity projects,
Dashboard Web UI - easy to use web interface for testing server integration.
A deployment for live production environment should be started with:
Matchmaking - find other players and start servers on-demand (Match-Bound).
Server Browser - pre-warm servers with long initialization (Regional Standby).
Deploy API - server-to-server customized integration (custom scaling).
Save request_id (Deployment ID) and tag Deployments to identify and troubleshoot issues later.
2. Deploying
Once a deployment is started, our system will perform a number of steps in rapid succession:
Telemetry - we’re measuring network responsivity from available data centers to each player,
Deployment - we’re reserving capacity and preparing to start your server container,
Container Boot - we’re starting the container, installing dependencies, and initializing,
Post Processing - we’re adding log storage, monitoring, and finalizing the deployment.
Enable Active Caching in your App Version to deploy servers within seconds.
Too Many Requests 429 - to ensure stability and prevent surprise invoices, we rate limit your organization at 40 req/s. Contact us to plan releases, estimate launch traffic, and prepare for success.
3. Deployment Ready
Your container is fully initialized and your server is starting up now. For a few seconds to a minute, your server may be still initializing and may not respond to player requests until your game engine (or custom runtime) is fully ready to accept player connections.
Once the deployment is Ready, retry player connection until successful, or until pre-defined client timeout.
Unexpected crash of server will cause your server to restart automatically. Server state may be lost.
4. Deployment Error
Your deployment may end up in Error state at any point in time, for unexpected reasons. This is more likely to happen while testing your integration, or testing new server builds.
You are not charged for deployments in Error, which are automatically stopped after 24 hours.
Troubleshooting steps:
Verify Edgegap Service Status with our uptime monitoring page.
Try testing your server container locally using Docker Desktop to rule out Edgegap issues.
When asking for help, include your deployment ID and any useful details so we can investigate promptly!
5. Deployment Stopped
We never stop your servers without your directive, to prevent impacting your players’ experience negatively. Your deployment may be stopped for these reasons:
Self-Stop via DELETE_URL - deployment stopped itself after players left and match ended,
Stop from your backend - your backend stopped this deployment using Deployments API,
Game Max Duration - the allotted time in your Safety Guardrails has expired,
Private Fleets Host running your deployment was deleted through a scheduled action.
👀 Observability
Allow game servers to interoperate with third parties and gain operational insights.
Discoverability
Once Ready, deployment is assigned a URL (fqdn) and an external port for each internal port.
Use deployment tags to easily mark your deployments and Filter Deployments.
Websockets (WS) and Secure Websockets (WSS)
To use websocket-based netcode with Edgegap, you have two options:
managed certificate, set up in 1 minute without writing any code:
configure your Apps and Versions to use Websocket (WS) and Enable TLS Upgrade,
use Edgegap URL to connect clients (e.g.
https://5fa53fa00a57.pr.edgegap.net/)
self-managed certificate, if you want to use your own custom domain:
configure your Apps and Versions to use Secure Websocket (WSS),
configure your own TLS certificate flow with a custom DNS record (e.g. on Cloudflare).
Uncaught server exceptions will cause the deployment's container to restart and invalidate TLS security. In such case, stop your server and rematch players to a new deployment. Server state may be lost.
Injected Variables
Game servers often need additional information, such as server IP, internal port values, or other. Injecting read-only environment variables is a reliable cloud-agnostic way to pass parameters.
Get variable values using GetEnvironmentVariable in C# or GetEnvironmentVariable in C++.
Custom Variables
Define up to 20 custom variables for each deployment, each containing up to 4KB of string data.
Avoid using reserved names (below), your custom variables will be overwritten otherwise!
Access important information by reading variables injected to your servers by Edgegap:
Identifiers
ARBITRIUM_REQUEST_ID- e.g.f68e011bfb01.Unique deployment ID, also referred to as request ID. Used to retrieve more information.
Deployment URLs always have format
{ARBITRIUM_REQUEST_ID}.pr.edgegap.net.
ARBITRIUM_HOST_ID- e.g.alpha-north-america-70364ef8.Unique identifier of the machine hosting your deployment, shared with other deployments.
ARBITRIUM_PUBLIC_IP- e.g.162.254.141.66.Public IP address of this host, can be used to connect instead of URL.
ARBITRIUM_DEPLOYMENT_TAGS- e.g.tag1,tag2.Comma-delimited user-defined deployment tags, useful for easy searching and filtering.
Resource Specifications
ARBITRIUM_HOST_BASE_CLOCK_FREQUENCY- e.g.2000, processor frequency in MHz.ARBITRIUM_DEPLOYMENT_VCPU_UNITS- e.g.256, allocated vCPU units (1024 = 1 vCPU).ARBITRIUM_DEPLOYMENT_MEMORY_MB- e.g.512, allocated RAM in MB (1024 = 1 GB).
Lifecycle Management
ARBITRIUM_DELETE_URL- e.g.https://api.edgegap.com/v1/self/stop/9f511e17/660.Callable from the deployment, deployment will be gracefully stopped.
Requires unique one-time
ARBITRIUM_DELETE_TOKENinAuthorizationheader.
ARBITRIUM_DELETE_TOKEN- e.g.7df4cd933df87084b34ae80d8abde293.ARBITRIUM_CONTEXT_URL- e.g.https://api.edgegap.com/v1/context/9170f5211e17/17.Only callable from the deployment, returns more deployment details.
Requires unique
ARBITRIUM_CONTEXT_TOKENinAuthorizationheader.
ARBITRIUM_CONTEXT_TOKEN- e.g.dfaf50b9333b9ee07b22ed247e4a17e6.
Discoverability
ARBITRIUM_PORT_GAMEPORT_INTERNAL- e.g.7777, internal port for server listener.ARBITRIUM_PORT_GAMEPORT_EXTERNAL- e.g.31504, external port for client connections.External port values are randomized for each deployment for security purposes.
ARBITRIUM_PORT_GAMEPORT_PROTOCOL- e.g.UDP, protocol of your netcode transport.
Examples assume you have named your port gameport (default). Each port adds an additional set of sanitized Port Mapping variables: @Super Port! ⇒ ARBITRIUM_PORT_SUPER_PORT_INTERNAL .
ARBITRIUM_BEACON_ENABLED- e.g.true, if deploying on private fleet running Ping Beacons.ARBITRIUM_HOST_BEACON_PUBLIC_IP- e.g.139.177.198.69, public IP of the closest beacon.ARBITRIUM_HOST_BEACON_PORT_UDP_EXTERNAL- e.g.30199, for ping measurement over UDP.ARBITRIUM_HOST_BEACON_PORT_TCP_EXTERNAL- e.g.30456, for ping measurement over TCP.
Structured Information (JSON as string)
Dashboard Monitoring
Our Dashboard provides utilities to monitor your server scalability and assist with operations.
Analytics
Find analytics dashboards in the sidebar menu under category Server Hosting & Orchestration.
🌟 Upgrade to Pay as You Go tier to unlock detailed server performance metrics and insights:
General Insights: monitor releases with live server count per version + resource usage overview,
CPU Insights: troubleshoot lagging servers due to processor-heavy operations,
Memory Insights: mitigate server restarts due to exceeding allocated memory,
Networking Insights: detect inefficient networking patterns and optimize netcode.

Deployment Map
Find deployment map in your deployment details page on Dashboard.
Preview deployment location, available locations, and estimated player locations on the map:

Deployment Balance Points
Find deployment balance points heatmap in your application details page on Dashboard.
Preview deployment balance points heatmap and filter by Apps and Versions. Balance points are approximate locations with equal network proximity to each player in a given deployment:

Balance point hotspots in strange locations (e.g. Greenland) indicate matchmaking of players far from each other. Learn about 🟢 Connection Quality and Ping Beacons to optimize your matchmaking.
Deployment Logs
Find deployment logs in your deployment details page on Dashboard.
Deployment logs display information about 🔄 Deployment Lifecycle:

Container Logs
Find container logs in your deployment details page on Dashboard.
Inspect your game server’s logs in case of issues, or when debugging:

Once deployment stops, container logs are deleted. Set up third party S3 log storage to save logs.
Container Metrics
Find container metrics in your deployment details page on Dashboard.
Review container metrics (processor, memory, networking) to:
identify common connection issues when 🚨 Troubleshooting,
detect inefficient implementation patterns causing spikes in resource usage,
pinpoint inefficient resource usage in particular scenarios,
verify changes in your server’s resource usage during optimization,
benchmark your server initialization resource consumption and duration.
History metrics display value averages with 1 minute time period, available in Free tier.
🌟 Upgrade to Pay as You Go tier to unlock precise metrics with 1 second time intervals.

Context & Status
Additional deployment information can be retrieved in JSON format:
from inside the deployment (game server), using Deployment Context API,
from outside the deployment (backend / third party), using Deployment Status API.
Too Many Requests 429 - we rate limit your organization at 10 req/s for Context and Status API endpoints. Use Injected Variables and Webhooks for a scalable solution.
Filter Deployments
To quickly search amongst all deployments, you can use our dashboard:

Alternatively, let players pick a persistent (always online) server from a list with Server Browser.
List deployments with API and apply filters with backend integrations:
or
or
[ "tagA", "tagB" ]
or
[ "my-app", "my-other-app" ]
or
[ "1.0.0", "prod" ]
Sort results by multiple fields in the order they appear in request:
Example filter queries:
Don’t forget to add the Authorization header with your Edgegap API token in the request.
Webhooks & Postbacks
If you need to receive a simple HTTP notification when a deployment is Ready or in Error, you can specify a webhook URL in your deployment API request.
Webhooks are not retried, so if your backend does not process the request due to rate limiting or an error, the webhook may be lost. Use webhooks only for non-critical use cases or debugging purposes.
🚨 Troubleshooting
When troubleshooting deployments:
verify there are no errors in your Deployment Logs and Container Logs,
run your server locally to rule out integration bugs,
review troubleshooting steps on this page,
reach out to us in Community Discord and include your deployment ID.
Last updated
Was this helpful?

