Online Multiplayer Game

A game developer releases a multiplayer online game. At any given time, there are 100 users connected and playing games. Games last 30 minutes, have an average of 10 players, and each player sends 10 messages per game. The game has sustained load 24 hours a day.

Assumptions

• Game state is synced with every command

• Each player does 5 commands a second

• Game state payloads are 3KB

• Chat messages are 150 B

Daily Calculations:

10 concurrent games x 48 per day x 10 players = 4,800 player games

5 commands x 60 seconds x 30 minutes = 9,000 commands per player 

9,000 commands x 4,800 games x 10 + 1 connections = 475.2M messages (game state)

4,800 games x 10 chat messages x 10 + 1 connections = 528,000 messages (broadcasted chat)

475.2M game state messages x 3 KB = 1425.6 GB data transfer

528,000 chat messages x .15 KB = .0792 GB data transfer

4,800 games x 30 minutes = 144,000 connection minutes

Monthly Costs:

1,425.68 GB x $.50 x 30 days = $21,385.20 ($5,000 Enterprise + 32.77TB On Demand)