BUILDING MULTIPLAYER GAME BACKEND WITH AKKA ON AWS LAMBDA
summary
Backend built with Scala and Akka on AWS Lambda, receiving WebSocket traffic via API Gateway, queuing messages into Kinesis data stream, and persisting state to DynamoDB; uses GraalVM native image plus a native-image agent (Docker) to generate reflection config. Cold starts drop from over a minute to about two seconds and JVM bundle shrinks from ~250 MB to a slim native binary. A Unity WebGL client connects; demo handles some load then fails, exposing scaling limits and the need for fan‑out processors.
AI-written summary · about
chapters (12)
- 0:00Multiplayer game backends on AWS Lambda
- 1:47Live demo and architecture
- 3:56AWS Lambda and API Gateway
- 5:42Infrastructure as code with CDK
- 7:48Scala challenges on AWS Lambda
- 9:58Optimizing Scala with GraalVM
- 14:14GraalVM config automation
- 16:24GraalVM Docker image for Lambda
- 18:10GraalVM trade-offs in Lambda
- 19:37Scaling with Kinesis and DynamoDB
- 20:20Summary
- 20:43Q&A
related talks
28mBuilding Event Streaming Applications with Serverless Kafka
24mHigh Performance Serverless Functions in Scala
39mRunning Scala on AWS Lambda as a native-image
53mDissecting Serverless Enterprise Java Applications #slideless
53mLook Ma! No servers!
51mArchitecting for Hyperscale with AWS: Navigating Real-world Serverless Challenges
33mBuilding an Enterprise-ready Lambda Experience (with Hands-On Demo)
29mHow to build a social network on serverless
