Slot number. There are 16384 slots in a Valkey cluster, and each shard manages a slot range.
Unless the slot is known, it's better to route using SlotKeyTypes
replicaSlotId overrides the readFrom configuration. If it's used the request
will be routed to a replica, even if the strategy is alwaysFromPrimary.
Routing configuration for commands based on a specific slot ID in a Valkey cluster.
Remarks
This interface allows you to specify routing of a command to a node responsible for a particular slot ID in the cluster. Valkey clusters use hash slots to distribute data across multiple shards. There are 16,384 slots in total, and each shard manages a range of slots.
"primarySlotId": Routes the command to the primary node responsible for the specified slot ID."replicaSlotId": Routes the command to a replica node responsible for the specified slot ID, overriding thereadFromconfiguration.Example