Aaronontheweb on 1.4.49
Question: I've got a sharded entity actor. It creates a child actor to perform some duty. When this child gets stopped by the entity actor, the following log entry appears:
Akka.Actor.LocalActorRef: Message DeathWatchNotification from akka://bm2cluster/user/sharding/LoonbonVerwerking/3/d8c52c1e-4843-4092-9cc4-43ec8f774737/lbvverrijking to akka://bm2cluster/user/sharding/LoonbonVerwerking/3/d8c52c1e-4843-4092-9cc4-43ec8f774737/lbvverrijking was not delivered. 5 dead letters encountered.
Before implementing sharding, this message didn't get logged.. Any idea's?
Hi
Just getting deeper into Akka.net here and I want to use a router with ConsistentHashing but I'm missing a key step. This my understanding:
`
public class MyMessage : IConsistentHashable
{
public readonly string P1;
/* some other properties *
public MyMessage (string p1)
{
this.P1 = p1;
}
public object ConsistentHashKey
{
get
{
return this.P1;
}
}
}
public class ActorSystemSetup
{
public ActorSystemSetup() {
/* make some actors for the router here */
var actors = new string[] {/* list of actors */};
var mapping = new ConsistentHashMapping(/* something here that associates MyMessage.P1 with one of the actors */);
var props = Props.Empty.WithRouter(new ConsistentHashingGroup(actors).WithHashMapping(mapping));
actorSystem.ActorOf(props, "router-name");
}
}
`
So I'm possibly one line away from awesome. Can someone help me out?