Akka.NET ConsistentHashingPool: create a hash route

Is it possible to get ConsistentHashingPool to create a hash route? I want one participant in the route to process only messages of the same hash. And if a new hash is included, then a new route is created.

I tried to learn the class Resizer, but I could not figure out how to achieve what I wanted.

+4
source share
2 answers

I think you are a little misunderstanding the ConsistentHashRouter (CHR) . It already does what you specified - it sequentially routes messages whose keys fall into the specified hash range on the same route.

/ CHR, / . , CHR node, , . node, , node . , - .

: ( 2015 .) . Akka.Cluster.Sharding, . JVM.

+2

( ...) , , , . , - - - , --.

, , : , , , , .

, ConsistentHashingRouter - create-unique-actors . ( , , , , ?)

+1

Source: https://habr.com/ru/post/1609842/


All Articles