pub const PARTITION_KEY_HEADER: &str = "redis-partition-key";Expand description
The well-known header key for per-message routing / partitioning.
The partition key controls key-based fan-out when the runtime is configured with
workers(N, by_key). The value is opaque bytes; the runtime hashes it to assign a dispatch
lane. Redis has no native partition concept, so the key travels as this header value on all
three transports.
A publish sets it with the partition_key step,
which resolves into this header. Writing the header at the call site still works, and is the
spelling that carries across brokers.