3 ms·
I wonder if something like AWS Lambda could be applied to multiplayer games? It seems like game-loop based games would be a good domain for such a programming m
by stcredzero 10y ago
I wonder if something like AWS Lambda could be applied to multiplayer games? It seems like game-loop based games would be a good domain for such a programming model. The entire game could be expressed as a function that turns tick N into tick N+1. Such a function would be composed of many other functions, of course. So for example, there would also be a function that took as an argument the player at time N and gave the player at time N+1.
Such a model would allow infrastructure developers to abstract away most of the concerns around networking, collisions, security, etc., and let game developers concentrate their efforts on simply making the game.
I currently have a game server cluster written in Golang, where the locations are instantiated with an idempotent request operation. It doesn't matter if a particular location-instance exists at a particular moment. It's sufficient for the "master control" server to only approximately know the loads of the different cluster server processes. My experience leads me to believe that something like AWS Lambda, but optimized for implementing game loops would work well, so long as game developers could get their heads around pure functional programming and implement with soft real-time requirements in mind. (John Carmack already advocates the use of pure functions, and game devs in general already do the latter.)
http://www.emergencevector.com http://www.emergencevector.com
- jedberg 10y agoThis was exactly the demo they gave and their AWS Dev Day in SF in July. Using Lambda and the IOT gateway to run a massively multiplayer game (they had everyone in the room play from the web via their phone).
- stcredzero 10y agoBut was that just a demo, or are they going to make a product out of that?
- jedberg 10y agoI mean it was a demo of a product they created using Lambda and the IOT framework. It was a working game, it just wasn't very fun. :) The code was on GitHub but I can't seem to find it.
- z3t4 10y agoWhat is the latency overhead in AWS Lambda ?
- TheHydroImpulse 10y agoLatency is around 80ms-200ms per invocation from what I've seen. Definitely not suitable for any real-time game.
- stcredzero 10y agoToo large for me to want to make a game in it. But if you made a specialized version that had an actual game loop underneath it, there's some potential there.