Skip to content
Akka modules demo
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
present
project
src/main
.gitignore
README.md
build.sbt
docker-compose.yml
docker.sbt

README.md

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

You can’t perform that action at this time.