Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 699 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 699 Bytes

PingPong with Akka

Present some of the core concepts in Akka while playing Ping Pong!

Topics to be covered

- Concurrency
- Fault tolerance (supervision strategy)
- Akka remote
- Akka cluster
- Akka persistence

Generate docker image

sbt docker:publishLocal

Run

docker-compose up

under the project root directory

Example (executable in restclient-mode)

:port = 9000

:header = << CONTENT-TYPE: application/json

Send a pingpongball

POST http://localhost::port/ping :header

{"type": "pingpongball"}

Get number of balls seen

GET http://localhost::port/ping :header