2.1 Spotlight: Consistent Hashing Router

A new router uses consistent hashing to select a connection based on the sent message.

ConsistentHashingRouter maps messages with same hash to the same routee, as far as possible. It means that when a routee is added, it takes its share of elements from the other routees and when it is removed, its elements are shared between the remaining routees. This can be very useful together with the new cluster aware routers.

Read more in the docs for Scala or in the docs for Java.

Recent comments

Blog comments powered by Disqus