Skip to content

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.

string

number

number