AggregateIdSharding

interface AggregateIdSharding : PreciseSharding<AggregateId>

Interface for sharding aggregate IDs across multiple nodes or partitions.

This interface extends PreciseSharding to provide sharding functionality specifically for AggregateId objects. Implementations determine which shard (node, partition, etc.) an aggregate should be routed to based on its ID.

Sharding is crucial for distributing data across multiple storage nodes to improve performance, scalability, and load balancing in distributed systems.

See also

PreciseSharding

Inheritors

Functions

Link copied to clipboard
@Nonnull
abstract fun sharding(shardingValue: AggregateId?): String?