This is a Unity demo of how to roll your own basic multiplayer server using AWS Lambda, API Gateway, and DynamoDb. The example is aimed for a two player game but can be scaled up for your project’s needs.
Please note that this is NOT a production-ready implementation, but if you’re an indie dev that just wants to get something up and running and not have to worry about high costs, then this may be a good starting point.
The AWS server setup can be used against any game client, not just Unity, and also probably any client networking library like Photon, but you’ll have to figure out how to manage the WebSocket stuff yourself.
You can watch Part Two here.
Repositories for this project
[basic-multiplayer-aws - lambda code in video]
- [Chat tutorial using AWS Lambda, API Gateway, & Dynamodb]
- [API Gateway costs - WebSocket APIs]
- [Lambda costs]
- [DynamoDB costs]
- [Terminate Socket from server]