You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is 3 ways to define what data to use for the consistent hash key.
You can define hashMapping / withHashMapper of the router to map incoming messages to their consistent hash key. This makes the decision transparent for the sender.
The messages may implement akka.routing.ConsistentHashingRouter.ConsistentHashable. The key is part of the message and it's convenient to define it together with the message definition.
The messages can be be wrapped in a akka.routing.ConsistentHashingRouter.ConsistentHashableEnvelope to define what data to use for the consistent hash key. The sender knows the key to use.
The text was updated successfully, but these errors were encountered:
I guess the easiest way is to copy RoundRobinGroup and reimplement the *Logic class to deal with the 3 above listed ways of hashing.
But try to keep close to the Akka impl
Can't mark this one as complete though, there are alot more magic to consistent hashing, Akka has virtual nodes and other features we need to deal with.
http://doc.akka.io/api/akka/snapshot/index.html#akka.routing.ConsistentHashingRouter
There is 3 ways to define what data to use for the consistent hash key.
The text was updated successfully, but these errors were encountered: