RangeAssignor
RangeAssignor is a Kafka consumer partition-assignment algorithm that sorts consumers and partitions and assigns each topic’s partitions in contiguous ranges.
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.
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.
Also covered in
What to know first
- consumer groupA consumer group is a logical set of message consumers that consume one or more streams under a shared group identity, with message delivery coordinated among its members.
Related concepts
- partition assignment strategykind of · A partition assignment strategy is a rule or algorithm for distributing topic partitions among members of a consumer group.
- eager rebalancekind of · Eager rebalancing is a consumer-group protocol in which all consumers revoke existing partition assignments before new assignments are distributed.
- RoundRobinAssignoralternative to · RoundRobinAssignor is a Kafka consumer partition-assignment algorithm that distributes subscribed-topic partitions cyclically and evenly across consumer-group members.
- joinuses · A join is an operation that combines records or data elements from multiple inputs according to matching or related values or conditions.
Questions about RangeAssignor
What is RangeAssignor?
RangeAssignor is a Kafka consumer partition-assignment algorithm that sorts consumers and partitions and assigns each topic’s partitions in contiguous ranges.
Which Manning books explain RangeAssignor?
Kafka for Architects and Apache Kafka in Action.
What should I know before learning RangeAssignor?
Manning books that teach RangeAssignor usually introduce consumer group first.
What is the difference between RangeAssignor and RoundRobinAssignor?
RangeAssignor is a Kafka consumer partition-assignment algorithm that sorts consumers and partitions and assigns each topic’s partitions in contiguous ranges. RoundRobinAssignor is a Kafka consumer partition-assignment algorithm that distributes subscribed-topic partitions cyclically and evenly across consumer-group members.
What is RangeAssignor a kind of?
RangeAssignor is a kind of partition assignment strategy. A partition assignment strategy is a rule or algorithm for distributing topic partitions among members of a consumer group.
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.

