You should build user own communication model for you Java client and Game server. The GameLift doesn't cover that area.
There are two ways of using GameLift managed service.
One is using the game build, that you should build your own communication model into the game server application. It doesn't handle game client connection or communication. You also have to integrate your game server with GameLift agent, via GameLift server SDK, which is not support for JAVA currently. You can refer the architecture from following document : https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-architecture.html.
The other is realtime server that you linked. It support client, server communication, and GameLift integration is the server side, and you can use custom node.js script for you own game logic. To use realtime server, you should use realtime client sdk for communicating with the server script. Currently the client sdk is not support in Java environment officially. The architecture of realtime server is in following document: https://docs.aws.amazon.com/gamelift/latest/developerguide/realtime-architecture.html.
So if you want to use Java client, you should build you own communication model from the other network library or you should find or implement realtime client sdk that is unofficial.
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 months ago
- EXPERTpublished 2 months ago
- EXPERTpublished 4 months ago