Code example for ConsistentHashingRouting

I want to route events from a certain source to the same routee/worker. So, I have planned to use Consistent-hashing routing. I have understood the theory at a high level. I am looking for a code example. Please give some pointers.