These are chat archives for petabridge/akka-bootcamp

15th
Jul 2015
John Haigh
@haighis
Jul 15 2015 00:53
I'm looking for some help in creating a working example of grouped router as outlined in the akka.net documentation here ```
var workers = new [] { "/user/workers/w1", "/user/workers/w3", "/user/workers/w3" }
var router = system.ActorOf(Props.Empty.WithRouter(new ConsistentHashingGroup(workers)), "some-group");
http://getakka.net/docs/working-with-actors/Routers
Bartosz Sypytkowski
@Horusiath
Jul 15 2015 05:31
@haighis describe your problem :)
John Haigh
@haighis
Jul 15 2015 13:04
@Horusiath I uploaded a repo to github to show the issue. The problem is that messages aren't being sent to the actor. Github repo https://github.com/haighis/AkkaNETGroupRouter.git
Bartosz Sypytkowski
@Horusiath
Jul 15 2015 14:49
@haighis could you describe your intent? What do you want to achieve?
John Haigh
@haighis
Jul 15 2015 14:58
@Horusiath I want to have a grouped router using consistent-hashing-group called todogroup that will send messages to coordinator Actor. This will use Akka cluster.
@Horusiath this is a more specified sample that I created from https://github.com/haighis/TodoReference, in order to learn how to use group router with consistent-hashing-group. The end goal is I want to be able to have MS web API send messages to the group router,which will then send the messages to the backend cluster which will process the message in a coordinator/child actor that will then handle inserting to a database.
@Horusiath
John Haigh
@haighis
Jul 15 2015 15:03
@Horusiath as well I though that if I got this smaller sample working I would create the same for pool router and then approach @Aaronontheweb about adding this to the akka .net source examples.
Bartosz Sypytkowski
@Horusiath
Jul 15 2015 15:11
looks, like you're trying to solve the problem, we're addressing in upcoming cluster sharding plugin ;)
problem with consistent-hashing routers is that they work pretty badly with clusters - they are not aware, if nodes join/leave the cluster
John Haigh
@haighis
Jul 15 2015 15:21
@Horusiath good to know. let me switch out and try a RandomGroup
@Horusiath i'm patiently waiting for cluster sharding. i've been watching to see it
John Haigh
@haighis
Jul 15 2015 18:43
@Horusiath i was able to get my sample working. thanks for the help...