lerna-stack / akka-entity-replication-sample

An example project showing how to use akka-entity-replication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

akka-entity-replication-sample

This is an example project showing how to use akka-entity-replication.

How to run this app

🐳 Run with docker-compose

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

🔧 Run with sbt

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

Versioning Strategy

We use the Calendar Versioning YYYY.MM.MICRO.

Changelog

You can see all the notable changes in CHANGELOG.

License

akka-entity-replication-sample is released under the terms of the Apache License Version 2.0.

© 2021 TIS Inc.

About

An example project showing how to use akka-entity-replication

License:Apache License 2.0


Languages

Language:Scala 89.6%Language:Shell 8.7%Language:Dockerfile 1.7%