question

brendan avatar image
brendan asked

Using Amazon GameLift with PlayFab

Question from a developer:

We're thinking of using Amazon GameLift for our game server hosting, and wanted to know how this would work with PlayFab. Would we be able to set up game sessions in GameLift via API calls from PlayFab?

Custom Game Servers
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Amazon GameLift is a service for dedicated game servers, and you can indeed use it in conjunction with PlayFab. With external game server hosting, whenever an instance of your game server starts, it notifies PlayFab and then maintains a "heartbeat" to our service. That enables the active games view in PlayFab, and gives you the ability to use our matchmaker. This guide has all the info on this: https://api.playfab.com/docs/tutorials/external-game-servers. You can also simply use GameLift's matchmaker if you prefer - you just need to notify PlayFab when players join and leave sessions, so that we populate that information correctly. You can do that either by using Matchmake to get a matchmaker ticket for a specific session, for use with RedeemMatchmakerTicket, or just use the PlayerJoined/PlayerLeft Matchmaer API calls.

The PlayFab multiplayer service, where we control spin up/down of servers as needed and collect the log/output files when sessions are done is specific to game servers hosted by PlayFab directly. You can read more about that service in this tutorial: https://api.playfab.com/docs/tutorials/landing-tournaments/custom-game-servers.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.