liveBook · Manning

RangeAssignor

RangeAssignor is a Kafka consumer partition-assignment algorithm that sorts consumers and partitions and assigns each topic’s partitions in contiguous ranges.

How 2 Manning books explain it

Kafka for Architects

RangeAssignor is a Kafka consumer partition assignor that orders consumers and assigns each topic's partitions sequentially in contiguous ranges.

How it is used
Assigns Kafka consumer-group partitions sequentially when predictable, cross-topic consumer placement matters.
How deep it goes
Defines ordering, contiguous assignment, co-partitioning, and eager-rebalance consequences without detailing assignor implementation internals.
Examples
Uses keyed Invoices and Profiles topics to demonstrate same-customer processing on one consumer instance.
What you can do after
Evaluate whether partition alignment and cross-topic correlation justify eager-rebalance downtime for a consumer group.

Read how Kafka for Architects explains RangeAssignor →

Apache Kafka in Action

The Range Assignor is a Kafka partition-assignment algorithm that assigns corresponding partition numbers from subscribed topics to the same consumers.

How it is used
Assigns matching partition numbers across topics to the same consumer when a consumer group processes related streams together.
How deep it goes
Explains default behavior, rebalance leadership, configuration consistency, partition examples, join use, and the risk of idle consumers.
Examples
Uses two two-partition product topics, three consumers, matching product keys, and a Kafka Streams join scenario.
What you can do after
Evaluate cross-topic processing needs, configure a consistent assignment strategy, and choose Kafka Streams for joins.

Read how Apache Kafka in Action explains RangeAssignor →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.