- Requests using rest api or websocket
- Server runs on port
:8080
- User provided number must be in range of 1-100
- Simple web client for sending websocket requests -
localhost:8080
{
"userNumber": integer,
"betAmount": float
}
{
"id": integer,
"winningNumber": integer,
"userNumber": integer,
"betAmount": float,
"win": boolean,
"wonAmount": float
}
- 1 million requests in 24 threads test fails as it is not implemented correctly