Get Started with Realtime Servers - Amazon GameLift

Get Started with Realtime Servers

This roadmap outlines the key steps to getting your multiplayer game clients up and running with the managed GameLift solution with Realtime Servers. If you have a game with a custom game server, see Get Started with Custom Servers. To learn about other GameLift solutions, see What Is Amazon GameLift?.

New to Realtime Servers or unsure about whether this feature is appropriate for your game? We recommend that you read How Realtime Servers Work.


If you're familiar with how to integrate and deploy games withGameLift, here's a quick summary of what's different with Realtime Servers:

  • Create and upload a Realtime script with optional game logic to run game sessions on Realtime Servers instances. You no longer need to develop a custom game server and integrate it with the GameLift Server SDK.

  • When creating a fleet to host your game sessions, deploy it with the Realtime script instead of a game server build.

  • Integrate your game client with the Realtime Client SDK to manage connections to game sessions.

Before you start integration, you need to have an AWS account and configure it for GameLift. Learn more at Set Up an AWS Account. All essential tasks related to creating and managing your game servers can be done using the GameLift console, but you may also want to Get and install the AWS Command Line Interface tool.

  1. Create a Realtime script for hosting on GameLift.

    • Create a Realtime script with your server configuration and optional custom game logic. Realtime Servers are already built to start and stop game sessions, accept player connections, and manage communication with the GameLift service and between players in a game. There are also hooks that allows you to add custom server logic for your game. Realtime Servers is based on Node.js, and server script is written in JavaScript. See Creating a Realtime Script.

  2. Build a fleet of computing resources to host your game.

  3. Prepare your game client to join GameLift-hosted game sessions.

    • Create a mechanism to assign unique player IDs for use with GameLift.

    • Set up a client service to send requests to the GameLift for new game sessions and to reserve space for players in existing game sessions. See Add Amazon GameLift to Your Game Client.

    • (optional) Enable the client service to request player matchmaking using FlexMatch. Learn more in FlexMatch Integration Roadmap.

    • Enable your game client to connect directly with a hosted game session that is running on a Realtime server and exchange information through messaging. See Integrating a Game Client for Realtime Servers.

Once you've fully integrated GameLift and Realtime Servers into your game components, it's a matter of managing your game server fleets for optimal availability and performance over the long term. Use GameLift tools to track things like how quickly and efficiently players can find and connect to a game session, overall performance of your game servers over time, and player usage patterns. See Viewing Your Game Data in the Console.