> For the complete documentation index, see [llms.txt](https://docs.edgegap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgegap.com/docs/hosting-migration/switch-from-playflow-cloud.md).

# Switch from PlayFlow Cloud

Migrate your multiplayer game from PlayFlow Cloud to Edgegap, with a feature mapping and a step-by-step path for moving game servers without downtime.

**Take advantage of free integration support for Unity and Unreal projects** and migrate to our reliable hosting easily. If you're hosting game servers on PlayFlow Cloud, this guide maps every feature you use to its Edgegap counterpart and walks you through the switch.

{% hint style="success" %}
[Orchestration](https://docs.edgegap.com/learn/orchestration.md) and DevOps are at the core of Edgegap platform. **Focus on your core business** instead of building scaffolding. **Minimize vendor lock-in** with cloud native approach and loose service coupling.
{% endhint %}

## 🚀 Getting Started

Your dedicated server build runs on Edgegap without netcode changes. Migration comes down to publishing your build, replacing a handful of API calls, and pointing your game clients to the new servers. Edgegap engineers and our amazing dev community are available for integration support.

Try one of our quick start guides supported with game engine plugins:

* [Unreal Engine](https://docs.edgegap.com/unreal-engine.md),
* [Unity](https://docs.edgegap.com/unity.md),
* [Godot](https://docs.edgegap.com/godot.md),
* [Web Games](https://docs.edgegap.com/web-games.md),
* [Custom Runtime using Docker](https://docs.edgegap.com/docs/tools-and-integrations/docker.md).

{% hint style="success" %}
[Browse our Game Samples](https://docs.edgegap.com/docs/sample-projects.md) to get inspired and gain confidence to move forward with your project.
{% endhint %}

{% hint style="info" %}
If you need help, [please reach out to us over Discord](https://discord.gg/MmJf8fWjnt). For live games support see our [ticketing system](https://edgegap.atlassian.net/servicedesk/customer/portal/3).
{% endhint %}

## 🗺️ Replace Features

Review and identify PlayFlow Cloud services and features which you need to replace:

<table><thead><tr><th width="272">PlayFlow Feature</th><th>Edgegap Feature</th></tr></thead><tbody><tr><td>API Keys (Server and Client)</td><td><ul><li><a href="https://app.edgegap.com/user-settings?tab=tokens">Edgegap API token</a> for your backend and CI/CD only,</li><li><a href="https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#authenticate">matchmaker API token</a> (safe to ship in game clients),</li><li><a href="https://docs.edgegap.com/learn/server-browser.md#authenticate">server browser API tokens + federated identity</a>.</li></ul></td></tr><tr><td>Unity SDK and Editor Upload</td><td>Try our quickstart tools - <a href="https://docs.edgegap.com/unity.md">Unity</a> / <a href="https://docs.edgegap.com/unreal-engine.md">Unreal Engine</a> / <a href="https://docs.edgegap.com/godot.md">Godot</a>.</td></tr><tr><td>Builds (ZIP Upload or Docker Image)</td><td><a href="https://docs.edgegap.com/learn/orchestration/application-and-versions.md">Apps and Versions</a> with our <a href="https://docs.edgegap.com/learn/advanced-features/edgegap-container-registry.md">Container Registry</a>, or your own registry. Our plugins containerize your build for you, <strong>no Docker knowledge required.</strong></td></tr><tr><td>CI/CD Build Import</td><td><a href="https://docs.edgegap.com/docs/tools-and-integrations/github-actions.md">GitHub Actions</a> or <a href="https://docs.edgegap.com/docs/api.md">API</a>.</td></tr><tr><td>Start, Stop and List Servers API (for development and testing)</td><td><a href="https://docs.edgegap.com/docs/api/dedicated-servers.md">Deployments API</a> with <a href="https://docs.edgegap.com/learn/orchestration/deployments.md#webhooks">Deployment Webhooks</a>.</td></tr><tr><td>Server TTL and Shutdown on Exit</td><td><a href="https://docs.edgegap.com/learn/orchestration/application-and-versions.md#safety-guardrails">Safety Guardrails</a> - Game Max Duration and Process Restart Policy, with Self-Stop from your game server.</td></tr><tr><td>Matchmaking and Lobby Configs</td><td><a href="https://docs.edgegap.com/learn/matchmaking.md">Matchmaking</a> with <a href="https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#matchmaking-rules">Rules</a> for skill, latency, and custom attributes.</td></tr><tr><td>Backfill and Match Roster</td><td><a href="https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#backfill-match">Backfill Match</a> and <a href="https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#injected-variables">Matchmaker Injected Variables</a>.</td></tr><tr><td>Lobbies</td><td><ul><li>Browse and Join - <a href="https://docs.edgegap.com/learn/server-browser.md">Server Browser</a> with custom search and seat reservation.</li><li>Invite Codes, Ready States, Host Controls - free Epic Online Services lobbies with our <a href="https://docs.edgegap.com/docs/tools-and-integrations/unreal-eos-lobby-integration.md">EOS Lobby Integration</a>.</li><li>Play with Friends - <a href="https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#group-up">Group Up for Matchmaking</a>.</li></ul></td></tr><tr><td><p>Server Regions</p><p>- 13 regions, picked at server start</p></td><td><a href="https://docs.edgegap.com/learn/orchestration/deployments.md#server-placement">Automated Server Placement</a><br>- best location picked for each match from player IPs, in 615+ locations<br>- optional <a href="https://docs.edgegap.com/learn/orchestration/deployments.md#region-lock">Region Lock</a></td></tr><tr><td>Instance Types (Compute Size)</td><td><a href="https://docs.edgegap.com/learn/orchestration/application-and-versions.md#resource-requirements">Resource Requirements</a> set per app version, starting at 0.25 vCPU.</td></tr><tr><td>Dedicated Instances</td><td><a href="https://docs.edgegap.com/learn/orchestration/private-fleets.md">Private Fleets</a> with <a href="https://docs.edgegap.com/learn/orchestration/persistence.md">Persistence</a>.<br>Optionally add later on, or default to <a href="https://docs.edgegap.com/learn/orchestration/deployments.md#match-bound">Match-Bound</a> cloud.</td></tr><tr><td>Network Ports and TLS (WebGL)</td><td><a href="https://docs.edgegap.com/learn/orchestration/application-and-versions.md#port-mapping">Port Mapping</a>. For WebGL, use a Websocket (WS) port with TLS Upgrade and a managed certificate.</td></tr><tr><td><p>Session Config</p><p>- <code>playflow.json</code>, <code>custom_data</code>, startup arguments</p></td><td><a href="https://docs.edgegap.com/learn/orchestration/deployments.md#injected-environment-variables">Injected Variables</a> (automated in engine-specific SDKs)</td></tr><tr><td>Pool Servers</td><td><a href="https://docs.edgegap.com/learn/orchestration/application-and-versions.md#active-caching">Active Caching</a> (Pay as You Go)<br>- 0.5s deployments worldwide, no standby servers required<br>- optional <a href="https://docs.edgegap.com/learn/orchestration/deployments.md#regional-standby">Regional Standby</a></td></tr><tr><td>Player Authentication</td><td>Optionally, add custom authentication with <a href="https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#server-to-server-api">Matchmaker Server to Server API</a> or <a href="https://docs.edgegap.com/learn/server-browser.md#authenticate">Server Browser Federated Identity</a>.</td></tr><tr><td>Server Logs and Metrics</td><td><a href="https://docs.edgegap.com/learn/orchestration/deployments.md#dashboard-monitoring">Dashboard Monitoring</a>, <a href="https://docs.edgegap.com/docs/api/dedicated-servers.md">Logs and Metrics API</a>, and <a href="https://docs.edgegap.com/docs/endpoint-storage.md">Endpoint Storage</a> to keep logs after servers stop.</td></tr></tbody></table>

## 🔀 Migrate Step by Step

Run both platforms side by side until your new game client is live. Players on older clients keep playing on PlayFlow Cloud while new clients connect to Edgegap.

### 1. Publish Your Server Build

PlayFlow Cloud accepts a ZIP of your Linux server build, or a Docker image. Edgegap runs your server as a container image, and our plugins build the image for you:

* **uploading a ZIP today?** Follow the quick start guide for your engine above. The plugin builds your Linux server, containerizes it, uploads it and creates your first app version.
* **importing a Docker image today?** Push the same image to our [Container Registry](https://docs.edgegap.com/learn/advanced-features/edgegap-container-registry.md), or keep it in your current registry, and create an [app version](https://docs.edgegap.com/learn/orchestration/application-and-versions.md) pointing to it:

{% tabs %}
{% tab title="Bash (Linux)" %}

```bash
project='<REGISTRY_PROJECT>';
username='robot$<REGISTRY_ORGANIZATION_ID>+client-push';
token='<REGISTRY_TOKEN>';

echo "$token" | docker login registry.edgegap.com -u "$username" --password-stdin 2>&1
```

{% endtab %}

{% tab title="PowerShell (Windows)" %}

```powershell
$project = '<REGISTRY_PROJECT>'
$username = 'robot$<REGISTRY_ORGANIZATION_ID>+client-push'
$token = '<REGISTRY_TOKEN>'

echo "$token" | docker login registry.edgegap.com -u "$username" --password-stdin 2>&1
```

{% endtab %}
{% endtabs %}

{% code collapsedlinecount="10" %}

```bash
docker image tag my-game-server:20261116-1530 registry.edgegap.com/<REGISTRY_PROJECT>/my-game-server:20261116-1530
docker push registry.edgegap.com/<REGISTRY_PROJECT>/my-game-server:20261116-1530
```

{% endcode %}

{% hint style="danger" %}
:x: **DO NOT - overwrite existing tags or use `latest`  tag** - this will deploy an outdated cache.\
:white\_check\_mark: **DO - always increase your version tag** and deploy the new build.
{% endhint %}

### 2. Configure Your App Version

Copy your PlayFlow project settings to your [app version](https://docs.edgegap.com/learn/orchestration/application-and-versions.md):

| PlayFlow Setting               | Edgegap App Version                                                                                                                                                                     |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Network Ports (port, protocol) | [Port Mapping](https://docs.edgegap.com/learn/orchestration/application-and-versions.md#port-mapping) - same internal port and protocol.                                                |
| TLS enabled on a TCP port      | Websocket (WS) protocol with TLS Upgrade.                                                                                                                                               |
| `compute_size`                 | [vCPU and Memory](https://docs.edgegap.com/learn/orchestration/application-and-versions.md#resource-requirements) - start with your current size, then adjust using deployment metrics. |
| `ttl`                          | Game Max Duration in [Safety Guardrails](https://docs.edgegap.com/learn/orchestration/application-and-versions.md#safety-guardrails).                                                   |
| `auto_restart`                 | Process Restart Policy - choose Never Restart for match-based servers.                                                                                                                  |
| Default environment variables  | [Injected Variables](https://docs.edgegap.com/learn/orchestration/application-and-versions.md#injected-variables) - mark secrets as hidden.                                             |

{% hint style="info" %}
PlayFlow standard instances share their vCPU with other servers. Edgegap allocates the vCPU you request to your deployment, so your server may need less than its current instance size.
{% endhint %}

### 3. Update Your Game Server

Replace `playflow.json` and the PlayFlow agent on port `9090` with [Injected Variables](https://docs.edgegap.com/learn/orchestration/deployments.md#injected-environment-variables), using our [Unity SDK](https://docs.edgegap.com/unity/developer-tools.md), [Unreal Engine tools](https://docs.edgegap.com/unreal-engine/developer-tools.md), or your runtime's environment variable methods:

<table><thead><tr><th width="317">PlayFlow Session Config</th><th>Edgegap Environment Variable</th></tr></thead><tbody><tr><td><code>instance_id</code></td><td><code>ARBITRIUM_REQUEST_ID</code></td></tr><tr><td><code>region</code></td><td><code>ARBITRIUM_DEPLOYMENT_LOCATION</code> (city, country, continent, coordinates)</td></tr><tr><td><code>ports</code></td><td><code>ARBITRIUM_PORTS_MAPPING</code>, or <code>ARBITRIUM_PORT_GAMEPORT_EXTERNAL</code> (client) for a port named <code>gameport</code></td></tr><tr><td><code>custom_data</code>, <code>startup_args</code>, <code>match_id</code></td><td>Custom variables set in your deployment request (up to 20, 4KB each).</td></tr></tbody></table>

**Stop the server when the match ends**, so you only pay while players are in game. If your server already quits its process at the end of a match, set Process Restart Policy to Never Restart and the deployment stops with it.

You can also stop the deployment from the server, without any API token:

{% code collapsedlinecount="10" %}

```bash
curl -X DELETE "$ARBITRIUM_DELETE_URL" -H "Authorization: $ARBITRIUM_DELETE_TOKEN"
```

{% endcode %}

### 4. Replace Server Allocation

If your backend starts servers with the PlayFlow API, replace each call with the [Deployments API](https://docs.edgegap.com/docs/api/dedicated-servers.md):

<table><thead><tr><th width="321">PlayFlow API</th><th>Edgegap API</th></tr></thead><tbody><tr><td><code>POST /v3/servers/start</code></td><td><a href="https://docs.edgegap.com/docs/api/dedicated-servers.md#post-deployments"><code>POST /v2/deployments</code></a></td></tr><tr><td><code>GET /v3/servers/{instance_id}</code></td><td><a href="https://docs.edgegap.com/learn/orchestration/deployments.md#webhooks">On Ready Webhook</a></td></tr><tr><td><code>GET /v3/servers</code></td><td><code>GET /v1/deployments</code>,<br>filtered with deployment tags</td></tr><tr><td><code>DELETE /v3/servers/{instance_id}</code></td><td><code>DELETE /v1/stop/{request_id}</code></td></tr><tr><td><code>GET /v3/servers/{instance_id}/logs</code><br>and <code>/metrics</code></td><td><a href="https://docs.edgegap.com/docs/api/dedicated-servers.md#get-v1-deployment-deployment_id-container-logs"><code>GET /v1/.../container-logs</code></a>  and<br><a href="https://docs.edgegap.com/docs/api/dedicated-servers.md#get-v1-metrics-deployment-deployment_id"><code>GET /v1/metrics/deployment/{request_id}</code></a></td></tr></tbody></table>

Send your players' public IP addresses instead of a region. Edgegap picks the location with the best ping for the whole match:

<pre class="language-bash" data-collapsed-line-count="10"><code class="lang-bash">curl -X POST "https://api.edgegap.com/v2/deployments" \
  -H "Authorization: token &#x3C;EDGEGAP_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "application": "my-game-server",
    "version": "20261116-1530",
    "users": [
<strong>      { "user_type": "ip_address", "user_data": { "ip_address": "203.0.113.10" } },
</strong><strong>      { "user_type": "ip_address", "user_data": { "ip_address": "198.51.100.24" } }
</strong>    ],
    "webhook_on_ready": { "url": "https://backend.example.com/edgegap/ready" }
  }'
</code></pre>

The response contains a `request_id`, which replaces the PlayFlow `instance_id`. Once the deployment is ready, give your players the deployment `fqdn` and the **external** port of your port mapping. This replaces `host` and `external_port` from PlayFlow `network_ports`.

Generate secret tokens for Edgegap API in [Dashboard - User Settings / Tokens](https://app.edgegap.com/user-settings?tab=tokens).

Add secret token with each API request in HTTP header (include the word `token`):

`Authorization: token xxxxxxxx-e458-4592-b607-c2c28afd8b62`

{% hint style="danger" %}
**Do not integrate Edgegap API endpoints in game client, as your API token provides unlimited access to your account. See** [Integration](https://docs.edgegap.com/docs/api/integration.md) **for secure client-facing API endpoints and functions.**
{% endhint %}

{% hint style="success" %}
In case your secret tokens are compromised or leaked, delete and re-create them from dashboard.
{% endhint %}

### 5. Replace Lobbies and Matchmaking

If your game clients use PlayFlow lobbies and matchmaking, pick the service matching your game flow:

* **Browse and Join Lobbies** - [Server Browser](https://docs.edgegap.com/learn/server-browser.md) lets players search running servers with custom filters, reserve their seats and receive connection details. Scaling policies start new servers as your player count grows.
* **Invite Friends to a Lobby** - Epic Online Services lobbies are free, work on every platform, and include invites, ready states and host controls. Start the match server on Edgegap when the lobby owner starts the game with our [EOS Lobby Integration](https://docs.edgegap.com/docs/tools-and-integrations/unreal-eos-lobby-integration.md).
* **Quick Match** - [Matchmaking](https://docs.edgegap.com/learn/matchmaking.md) starts a server for each match and returns its address to every player. Each PlayFlow matchmaking mode becomes a matchmaker profile with its own [rules](https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#matchmaking-rules).
* **Queue as a Party** - a PlayFlow lobby queueing for matchmaking becomes a [matchmaker group](https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#group-up), keeping friends on the same team and server.
* **Join in Progress** - replace PlayFlow backfill with [Backfill Match](https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#backfill-match). Your server reads the players to expect from [matchmaker injected variables](https://docs.edgegap.com/learn/matchmaking/matchmaker-in-depth.md#injected-variables).

See [Unity Server Browser](https://docs.edgegap.com/unity/server-browser.md), [Unity Matchmaking](https://docs.edgegap.com/unity/matchmaking.md) and [Web Games Matchmaking](https://docs.edgegap.com/web-games/matchmaking.md) for client integration.

{% hint style="success" %}
**Server Browser and Matchmaking are free to test, no credit card required.**
{% endhint %}

### 6. Test and Release

* Start a deployment from our [Dashboard](https://app.edgegap.com/deployment-management/deployments/list) and connect with a game client to verify your build.
* Test your full flow from matchmaking to end of match, and confirm that deployments stop after players leave.
* Release your updated game client. New clients find matches on Edgegap, older clients keep using PlayFlow Cloud.
* Once older clients are no longer in use, stop your PlayFlow servers and cancel your plan.

## ⭐ Backend Integrations

Ensure your current game backend will be fully supported after migration. Edgegap offers integration support for all game backends with a PlayFlow Cloud integration guide:

* [Epic Online Services](https://docs.edgegap.com/docs/tools-and-integrations/unreal-eos-lobby-integration.md), [featured post from Feb 2024](https://onlineservices.epicgames.com/en-US/learning/launch-and-scale-your-multiplayer-game-with-epic-online-services-and-edgegap).
* [PlayFab](https://docs.edgegap.com/docs/tools-and-integrations/playfab-bridge.md).
* [Unity Gaming Services](https://docs.edgegap.com/docs/tools-and-integrations/deploy-from-ugs.md) - keep your Unity Matchmaker.
* Bring your own custom backend.

Edgegap additionally supports integrations with platforms (incl. but not limited to) [Nakama by Heroic Labs](https://docs.edgegap.com/docs/tools-and-integrations/deploy-from-nakama.md), [Pragma](https://pragma.gg/case-studies/soliton-interactive), [Beamable](https://edgegap.com/resources/partners/beamable), [BrainCloud](https://edgegap.com/resources/partners/braincloud), [Loot Locker](https://edgegap.com/resources/partners/loot-locker), [Invokation Games](https://edgegap.com/resources/partners/invokation-games), [XSOLLA backend](https://edgegap.com/resources/partners/xsolla), [Network Next](https://edgegap.com/resources/partners/network-next) and more.
