Removing deployId from config, should be replaced with patterns in deployment configuration that is checked towards the address
This commit is contained in:
parent
f993219f91
commit
b66d45ec6c
14 changed files with 43 additions and 99 deletions
|
|
@ -109,12 +109,7 @@ public class Pi {
|
|||
workers.add(worker);
|
||||
}
|
||||
|
||||
router = Routing.actorOf(
|
||||
RoutedProps.apply()
|
||||
.withRoundRobinRouter()
|
||||
.withConnections(workers)
|
||||
.withDeployId("pi")
|
||||
);
|
||||
router = Routing.actorOf(RoutedProps.apply().withRoundRobinRouter().withConnections(workers), "pi");
|
||||
}
|
||||
|
||||
// message handler
|
||||
|
|
|
|||
|
|
@ -58,11 +58,7 @@ object Pi extends App {
|
|||
val workers = Vector.fill(nrOfWorkers)(actorOf[Worker])
|
||||
|
||||
// wrap them with a load-balancing router
|
||||
val router = Routing.actorOf(
|
||||
RoutedProps.default
|
||||
.withRoundRobinRouter
|
||||
.withConnections(workers)
|
||||
.withDeployId("pi"))
|
||||
val router = Routing.actorOf(RoutedProps().withRoundRobinRouter.withConnections(workers), "pi")
|
||||
|
||||
// message handler
|
||||
def receive = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue