Problem Statement
Which mitigation helps most with a write-hot key like a celebrity feed?
Explanation
Salting spreads hot writes across multiple shards or partitions by appending a small salt, then merging on read.
This reduces contention while keeping query semantics intact with a controlled fan-in.
Code Solution
SolutionRead Only
post:{id}:{salt in 0..9} -> read fan-in 10, merge by time