sharding

open override fun sharding(aggregateId: AggregateId): String

Determines the shard by hashing the aggregate ID and delegating to the numeric sharding strategy.

This method converts the aggregate ID string to a Long value using the hash function, then delegates the sharding decision to the wrapped PreciseSharding implementation.

Return

The shard identifier determined by the underlying numeric sharding strategy

Parameters

aggregateId

The aggregate ID to shard