liveBook · Manning

Partition imbalance

As explained in Kafka for Architects

Partition load imbalance is an uneven distribution of records or processing work across partitions.

Partition imbalance occurs when an unsuitable message key sends substantially more records or processing work to one partition than to others. The overloaded partition can increase processing latency, while other partitions remain underutilized. section 2.4.1

Regional order skew

Suppose orders use region as the partitioning key and 80% come from the East. The East partition may become overwhelmed while Central and West partitions consume fewer resources. Omitting keys can avoid enforced ordering when timestamps let a downstream log system reconstruct sequence, but this changes the partitioning trade-off. section 2.4.1

How Kafka for Architects covers it

How deep it goes
Defines the imbalance, explains its regional cause and latency effects, and contrasts keyed routing with keyless distribution.
Examples
Uses region-skewed orders and timestamped application logs to illustrate keyed and keyless partitioning.
What you can do after
Diagnose overloaded and underutilized partitions by relating key choice to data volume and consumer processing latency.
How it connects
Connects partition imbalance with Kafka keys, partitions, message ordering, consumers, and downstream log aggregation.

Also explained in

Compare how 2 books explain partition imbalance →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.