This is an example project demonstrating Apache Pekko Replicated Event Sourcing to run a replica per datacenter.
In terminal 1: sbt "runMain sample.persistence.res.MainApp cassandra"
In terminal 2: sbt "runMain sample.persistence.res.MainApp 7345 eu-west"
In terminal 3: sbt "runMain sample.persistence.res.MainApp 7355 eu-central"
In terminal 4:
pekko
from user u1
in DC eu-central
: curl -X POST http://127.0.0.1:27355/thumbs-up/pekko/u1
pekko
from user u2
in DC eu-west
: curl -X POST http://127.0.0.1:27345/thumbs-up/pekko/u2
pekko
: curl http://127.0.0.1:27355/thumbs-up/pekko