Skip to main content

partition_for

Function partition_for 

Source
pub fn partition_for(key: &str, partitions: u32) -> u32
Expand description

Stable partition assignment: FNV-1a of the key modulo partition count. Deterministic across processes and platforms so replay tooling and the broker always agree (a hash mismatch would silently split an agent’s ordered stream).