(key: string, nodes: ReadonlyArray<string>): stringStable owner pick for a fixed node set — sort keys, then Hash.string modulo.
Remapping when membership changes is intentional / explicit (v1 = fixed fleet).
utils
Source src/ShardMap.ts:591 lines
export const const consistentHash: (
key: string,
nodes: ReadonlyArray<string>
) => string
Stable owner pick for a fixed node set — sort keys, then Hash.string modulo.
Remapping when membership changes is intentional / explicit (v1 = fixed fleet).
consistentHash = import internalinternal.const consistentHash: (
key: string,
nodes: ReadonlyArray<string>
) => string
Stable owner pick for a fixed node set — sort keys, then Hash.string modulo.
Remapping when membership changes is intentional / explicit (v1 = fixed fleet).
consistentHash;