Skip to main content

Module hashing

Module hashing 

Source
Expand description

Consistent hashing for document-to-shard routing.

This module implements a consistent hash ring that distributes documents across shards with minimal redistribution when the cluster topology changes. Virtual nodes are used to ensure even distribution of data across shards.

Structsยง

ConsistentHashRing
A consistent hash ring for routing documents to shards.