When scaling experimentation, use 10,000-bucket salted MurmurHash3 so rollouts ramp monotonically without DB reads.
TL;DR30-second simplified summary▾
Guarantees zero network overhead, sign-safe Java modulo, and orthogonal experiment layers.
Why Random Coin Flips & Un-Salted Hashes Fail.
Why this matters: Show how non-deterministic or un-salted assignment corrupts A/B metrics.
Calling random.random() on each request flips a user between Variant A and Control on page reload. Hashing user_id alone without a salt assigns the exact same cohort to every experiment, coupling results.
10,000-Bucket Ruler & Monotonic Ramps.
Why this matters: Support 0.01% granularity rollouts without reshuffling existing users.
Mapping hashes onto [0, 9999] lets teams ramp Variant A from [0, 99] (1%) to [0, 999] (10%) monotonically: every user in [0, 99] stays in Variant A.
Practice: Make the trade-off yourself.
Why append an experiment-specific salt before hashing user_id?