Partition imbalance occurs when data-processing work is unevenly distributed across partitions. Overloaded partitions can limit throughput and scalability and increase latency, while underused partitions waste resources. For example, one of three partitions might handle most incoming requests while the others remain mostly idle. section 5.5
Both the distribution of data and the pattern of access matter. A partition key with many distinct values offers more opportunity to spread data across partitions; a low-cardinality key can produce fewer, unevenly sized partitions. High cardinality alone does not prevent a workload from concentrating requests on a few partitions. section 5.2.1 section 5.5.2
Order status and popular products
Partitioning orders by status can produce uneven partitions if far more orders are shipped than pending, delivered, or canceled. Separately, an online store may distribute its product data evenly but still overload the partition holding a newly launched product when many customers request it at once. section 5.2.1 section 5.5.2
Consider these approaches when choosing or adjusting a partitioning scheme:
- Choose a high-cardinality key, or combine columns to increase cardinality, to create more opportunities for an even data distribution. section 5.2.1
- Partition within a hot partition or allocate it more resources when requests concentrate there. Rebalance partitions if skewed writes make a few grow disproportionately. section 5.2.1
- Account for location and time: geographical partitions can have different activity levels, and time zones shift demand. Consider additional partitioning, load balancing, or scaling; overprovision for known events such as Black Friday. section 5.5.2

