Skip to content

Glossary: System Design Basics in Rust

Stable hash

A hash function that gives the same number for the same key on every machine and every run. Rust's `HashMap` hasher is randomly seeded, so it isn't stable and would move customers between shards after a restart.

Where the book teaches it

Related terms

CRC-32Hash sharding