Skip to content

Reactive web-based roulette application built on Lagom framework

License

Notifications You must be signed in to change notification settings

andrei-l/reactive-roulette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

reactive-roulette

Reactive Roulette application with Lagom framework.

Architecture

Project Architecture

Project details

API

All interaction with application should be performed against Service Gateway which is running at http://localhost:9000. So far next API is supported:

Method Path Service which will be called
POST /api/roulette-game-bet/:gameId/bet roulette-bets (http://0.0.0.0:62315)
POST /api/player player (http://0.0.0.0:52620)
POST /api/player/login player (http://0.0.0.0:52620)
GET /api/player/:playerId player (http://0.0.0.0:52620)
POST /api/recurring-game game http://0.0.0.0:52620)
GET /api/recurring-game/:gameId game http://0.0.0.0:52620)

Running

In order to run the project use sbt runAll

Load / Functional testing

There is a special micro-service called load-test which tries to load application in a following way:

  • it registers users
  • it creates games
  • it asks users to places bets on the games
  • it awaits for results

Communication with load-test module happens via WebSocket. For conveniece there is a sample html page which encapsulates websocket channel.

It accepts request in a following format:

    {
      "numberOfConcurrentGames": 1,
      "numberOfPlayers": 1,
      "numberOfBetsToPlace": 1
    }

Releases

No releases published

Packages

No packages published

Languages