Amazon GameLift
Developer Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Get Started with Realtime Servers

This roadmap outlines the key steps to getting your multiplayer game clients up and running with Realtime Servers. If you have a game with a custom game server, see Get Started with Custom Servers.

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

Note

If you're familiar with how to integrate and deploy games with Amazon GameLift, 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 Amazon 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 Amazon 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 Amazon 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 Amazon 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 Amazon 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 Amazon GameLift-hosted game sessions.

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

    • Set up a client service to send requests to the Amazon 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 Amazon 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 Amazon 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.