The flow of creating one room — Create Room

The API reserves and creates a Spot, then returns RoomId (= SpotId)

The flow of creating one room — Create Room The API reserves and creates a Spot, then returns RoomId (= SpotId) POST /games Reserve a new Spot SpotId and selected owner Create Spot with initial request Construct and initialize Accept Spot ready RoomId = SpotId HTTP client · Sequence participant HTTP client API server · Sequence participant API server Location Store · Sequence participant Location Store Selected Play node · Sequence participant Selected Play node Game Spot · Sequence participant Game Spot

Reservation and placement

  • • The API doesn't pick a specific Play node. The Location Store reserves a new Spot and returns a globally unique SpotId and the selected owner.
  • • The API tells the selected Play node to create the Spot along with the initial request — Create Spot with initial request.

Creation and response

  • • The Play node constructs and initializes the Game Spot, and once the Spot returns Accept it is ready.
  • • The API returns RoomId = SpotId to the client.