This is an example project showing how to use akka-entity-replication.
Create this app docker image.
sbt --batch docker:publishLocal
To start cluster, run following a command.
docker-compose up -d
You can watch logs of running services.
docker-compose logs -f --tail=10 node1
docker-compose logs -f --tail=10 node2
docker-compose logs -f --tail=10 node3
docker-compose logs -f --tail=10 cassandra
docker-compose logs -f --tail=10 haproxy
You can run the following command to see application behavior.
bin/demo-request.sh 100 # An account No must be pass!
To stop the containers and remove all data, run the following command.
docker-compose down --volumes
To start cluster, run following commands on separated terminals.
docker-compose up -d cassandra
sbt --batch runNode1
sbt --batch runNode2
sbt --batch runNode3
You can run the following command to see application behavior.
bin/demo-request.sh 100 # An account No must be pass!
To stop the cassandra container and remove all data, run the following command.
docker-compose down --volumes
We use the Calendar Versioning YYYY.MM.MICRO
.
You can see all the notable changes in CHANGELOG.
akka-entity-replication-sample is released under the terms of the Apache License Version 2.0.
© 2021 TIS Inc.