This is an example project showing how to use akka-entity-replication.
Create this app docker image.
sbt --batch docker:publishLocalTo start cluster, run following a command.
docker-compose up -dYou 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 --volumesTo start cluster, run following commands on separated terminals.
docker-compose up -d cassandrasbt --batch runNode1sbt --batch runNode2sbt --batch runNode3You 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 --volumesWe 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.