Skip to main content

slot

Function slot 

Source
fn slot(attrs: &[KeyValue], i: usize, n: usize) -> usize
Expand description

Which replica a resource’s records belong on.

The identity hash, so every record describing one entity lands on one node whatever batch it arrived in and whatever order the batches came in — that is the whole property, and it holds without the proxy remembering a thing.

mira_core::identity::NO_IDENTITY is spread by position instead. A resource with no identifying attribute has no entity to keep together, by the argument in identity.rs, so hashing it to a fixed slot would pile every unidentified sender in a deployment onto replica zero and buy nothing for it.