When building services based on the remote actor model, there is a need for dynamic discovery of new remote actor nodes or even load balance among the existing remote actor nodes.
This is a working sample of using Netflix Eureka to load balance, dynamic discovery and handling fault tolerance for remote actor nodes.
If you are looking for master-worker, grid or workload distribution model, clustered actors might be a better option.
- Have Netflix eureka server running (refer - https://github.com/Netflix/eureka)
- Download the EurekaActors Code
- Make modifications to eureka-client.properties in ServiceHosting and ServiceConsumer for eureka server url
mvn clean install
Run the following command in the ServiceHosting
sbt clean compile dist
Go to target/ServiceHosting-dist
bin/start org.akka.essentials.service.ServiceInit
Run the following command in the ServiceConsumer
sbt clean compile dist
Go to target/ServiceConsumer-dist
bin/start org.akka.essentials.service.ServiceInit