Massively Multiplayer Online Game Servers in Twisted Python
summary
Backend for Thunder Run runs in Python on Twisted, using deferreds then inlineCallbacks and migrating toward async/await to keep latency low. System claims 100,000+ monthly players with about 1,000 concurrent users, scales horizontally by one process per core (roughly one core per 100 players), persists state to S3, calls third‑party APIs and WebSockets asynchronously, and instruments every entry point with timers to track average and peak latency and in‑flight request counts.
AI-written summary · about
chapters (13)
- 0:00Introduction to speaker
- 1:02Battle House game overview
- 2:59Game engine and architecture
- 4:46System components and tools
- 7:49Server request handling
- 10:19Twisted and async basics
- 12:50Sync vs async code paths
- 15:32Handling asynchronous tasks
- 18:24Promises, futures and deferreds
- 21:11Inline callbacks and modern API
- 23:26Production considerations
- 25:19Latency profiling and metrics
- 28:57Q&A and scaling
