Problem Statement
Which partition key minimizes hot partitions for user-centric workloads?
Explanation
Hashing a high-cardinality identifier spreads load evenly and avoids concentrating traffic on a single shard.
Pure time or geography keys can cause skew during spikes or regional events unless combined with hashing.
Code Solution
SolutionRead Only
shardId = hash(user_id) % N
