Full lesson
Explore the full explanation, examples, and visuals at your own pace.
Part 1
Bunsen places an object by scoring every cache node for its key, then picking the top scorer. This is rendezvous hashing, also called highest random weight. Our events part gets a hashed score from each node, the nodes sort by score, and the highest one becomes the primary owner, the node that serves that key.
Illustrative scores for one key
Here's one key from the events table, scored by each cache node. Node B gets 0.91, the highest, so B is the primary owner. Node A, at 0.62, is the first fallback. Node C, at 0.35, is the second. These numbers are illustrative, but the ranking idea is exactly how placement works.
Chart values
| Cache node | Weighted score |
|---|---|
| Node B | 0.91 |
| Node A | 0.62 |
| Node C | 0.35 |
Same inputs, same math: every node derives the same ranking.
Every node gets the same inputs and runs the same math, so they all land on the same ranking. No index, no ownership table. The ranking is the coordination.
A cold read fills the primary owner
Say the engine needs events part. It goes straight to Node B, the top-ranked owner. If B doesn't have it, B fetches the object from S3, serves it, and keeps a copy on its NVMe. The next request is a hit from NVMe. In normal operation, writes already put the data there, so this miss path is mostly a safety net.
Dashboard spike on events part
In the calm case, only Node B holds the events part, and it handles a few requests. Then a dashboard spike hits. Under sustained pressure, the key grows into its next-ranked owners, first Node A, then Node C. Now all three share the load, instead of everything piling onto Node B.
When the spike passes, the key cools back to one copy.
When the spike passes, the key settles back to one copy on Node B. One ranking gives locality and hotspot protection, because every node ranks every key identically.
Node D joins the ring
Now Node D joins the ring. Nobody recomputes the old scores. Node B still scores 0.91, Node A 0.62, Node C 0.35, and D simply adds one new score, 0.97. That's the highest, so D becomes primary for events part. For keys where D scores low, nothing moves.
Chart values
| Cache node | Weighted score |
|---|---|
| Node D | 0.97 |
| Node B | 0.91 |
| Node A | 0.62 |
| Node C | 0.35 |
What happens to the old copy
Once D joins and re-scores the key, two things happen. D becomes the owner and fills events part on demand, the first time someone asks for it. Node B's copy isn't deleted. It simply stops being used, and LRU, least recently used, eventually ages it out when space is needed.
After a scale event
When a node joins or leaves, only the keys it affects get new scores. Old copies aren't deleted; they age out through LRU. Then the ring force-rebalances, so ownership spreads evenly instead of waiting for organic churn. It's cheap, and it heals itself.
- Only affected keys re-score
- Stale copies age out via LRU
- Force-rebalance evens out ownership
Every node ranks every key identically; the ranking itself is the map.
Every node ranks every key identically; the ranking itself is the map. To predict where a key lives, ask which node scores highest for it.

