Skip to content

The dispatcher is a Kubernetes controller used for creating game servers

License

Notifications You must be signed in to change notification settings

Ubivius/microservice-dispatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice-Dispatcher

The dispatcher is used for starting game servers in the kubernetes cluster.

When players are logged into their account in the game client they send a request to the disatcher.

Dispatcher calls matchmaking. Once matchmaking returns a slice of players the dispatcher starts the game server.

This is where the kubernetes controller part of this service comes into play.

Once the game server is up and running the dispatcher returns the information for connecting to the new game server to the players.

Dispatcher endpoints

GET /GameServer A game client calls this endpoint when a player wants to create a lobby.

Returns

{
    "server_id": "string",
    "server_ip": "string",
    "tcp_port": "int",
    "udp_port": "int",
}

GET /IP/{id:[0-9a-z-]+} A game client calls this endpoint when it wants to join an existing lobby. The "id" is the game id.

{
    "id":    "string, required"
}

Returns

{
    "server_id": "string",
    "server_ip": "string",
    "tcp_port": "int",
    "udp_port": "int",
}

About

The dispatcher is a Kubernetes controller used for creating game servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •