hashShardId
hashShardId(
entityId,numShards):number
Defined in: src/cluster/sharding/ShardAllocator.ts:42
Helper used by the default ShardRegion to map an entityId to a shard. Uses a stable string hash; callers may supply their own extractShardId.
Parameters
Section titled “Parameters”entityId
Section titled “entityId”string
numShards
Section titled “numShards”number
Returns
Section titled “Returns”number