Key salting.
also: key splitting · salting · salted keys · salted keySplitting one hot logical key into several physical keys (key:0…key:9) on different partitions, then combining them on read.
the two-minute refresher
- viral_url_abc becomes viral_url_abc:0 … :9 across ten partitions.
- Writes or reads pick a random suffix, spreading load tenfold.
- Reads that need the whole value must fetch all pieces and merge them.
- Sharded counters are the same idea for write-heavy counters.