routing - Creating actor per domain object -
i have been trying use router consistenthashingpool create actors on fly consume messages on basis of object id, in simple case unique string. i want actor per domain aggregate , seemed simple way of doing it. but hashing seems doing odd things , sending messages actors have been spawned different hash mapping value. actorsystem.actorof( props.create(() => new myaggergateactor()).withrouter( new consistenthashingpool(10) .withhashmapping(o => (o myevent)?.myaggregateuniqueid ?? string.empty) .withresizer(new defaultresizer(1, int.maxvalue))), "myaggregaterouter"); also tweaking values nrofinstances seems break things well, meaning hash maybe works across set of initial instances , no new actors being spawned? thought resizer supposed me here? please forgive naivety, have started using akka. the key here understand routers do. consistent hashing means, given range of possible consistent hash values, each of actors...