Skip to content

Load balancing and fault tolerance for distributed actors using Netflix Eureka

Notifications You must be signed in to change notification settings

write2munish/EurekaActors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EurekaActors

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.

Installation

  1. Have Netflix eureka server running (refer - https://github.com/Netflix/eureka)
  2. Download the EurekaActors Code
  3. Make modifications to eureka-client.properties in ServiceHosting and ServiceConsumer for eureka server url

Running

ServiceProvider

mvn clean install

ServiceHosting

Run the following command in the ServiceHosting

sbt clean compile dist

Go to target/ServiceHosting-dist

bin/start org.akka.essentials.service.ServiceInit

ServiceConsumer

Run the following command in the ServiceConsumer

sbt clean compile dist

Go to target/ServiceConsumer-dist

bin/start org.akka.essentials.service.ServiceInit

About

Load balancing and fault tolerance for distributed actors using Netflix Eureka

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages