Questions about approaches to implement a lobby system with nakama and aws gamelift
Hi Team,
We are trying to implement a multiplayer game experience using nakama and aws gamelift, Currently we are going with automated matchmaking for our POC(where a user clicks on find match and gets matched with people based on appropriate heuristics) for which the implementation is straight forward based on this documentation(GameLift Fleet Management - Heroic Labs Documentation)
Our road map might include a pivot to lobby based matchmaking and there is no appropriate documentation on how to achieve this with aws gamelift asfaik. So im chalking out a way to achieve this which i think is feasible below in the details section, i would request you to review this and provide guidance, best practices and pitfalls based on the same. I’m seeking your expertise so we can put this in roadmap and structure our current code better for easy portability. If this chalked out approach is wrong/ a bad practice, please guide me on how to achieve what i indented to do.
{Details}
User Request Flow for Lobby matchmaking using Nakama and AWS gamelift plugin
- Player A creates a lobby match which hits a custom api registered in nakama and returns a unique lobby code, Player A receives the lobby code in Screen, lets say the lobby code is xYa132.
- Player A shares this code with his friends, Player B and Player C.
- Player A then starts the match and the client sends the query with the lobby code with matchmaker_add socket message envelope along with the query, from the nakama gamelift documentation the query will look like query := “+value.lobbyCode:xYa132”, the player A gets a session created and receives ip address, dns etc etc and waits in the lobby match.
- Player B and Player C paste the lobbyCode and clicks Join Match and they have matchmaker_add socket message envelope created with query “+value.lobbyCode:xYa132”, they get matched with this unique query and get same ip address and dns as player A and then they connect and play the match.
Is this a feasible way to approach lobby based matchmaking with nakama and aws gamelift ? any pitfalls ? any best practices ?
Thanks and Regards
Harish Kumar Datla
Media: