I learned from Akka.net WebCrawler and created my own cluster test. I have a node processor (console application) and a node API (SignalR). Here are the configurations.
Processor node:
akka {
actor{
provider = "Akka.Cluster.ClusterActorRefProvider, Akka.Cluster"
deployment {
/dispatcher/signalR {
router = broadcast-group
routees.paths = ["/user/signalr"]
cluster {
enabled = on
allow-local-routees = false
use-role = api
}
}
}
}
remote {
log-remote-lifecycle-events = DEBUG
helios.tcp {
port = 0
hostname = 127.0.0.1
}
}
cluster {
seed-nodes = ["akka.tcp://stopfinder@127.0.0.1:4545"]
roles = [processor]
}
}
API node: (Non seed-node will have port = 0)
akka {
actor{
provider = "Akka.Cluster.ClusterActorRefProvider, Akka.Cluster"
}
remote {
log-remote-lifecycle-events = DEBUG
helios.tcp {
port = 4545
hostname = 127.0.0.1
}
}
cluster {
seed-nodes = ["akka.tcp://stopfinder@127.0.0.1:4545"]
roles = [api]
}
}
Inside the node API, I created a normal actor called SignalR.
Inside the node processor, I created a normal actor and used the Scheduler for Tell()
the node signalR API of an actor of some string.
, API. , API node. , API node, , , "tell" API; . node API node. , API, , .
, . - ?
. ASP.NET SignalR API node .
: Akka.NET. . 1.1.
2: proejct GitHub.