Kafka RangeAssignor benefits over RoundRobin

Viewed 290

RangeAssignor is the default partition assignment strategy in Kafka. Although comparing to RoundRobin, RangeAssignor does not assign partitions evenly.

Why is it chosen to be default partition assignment strategy? What benefits does it have over RoundRobin?

1 Answers

This is useful, for example, to join records from two topics which have the same number of partitions and the same key-partitioning logic

Related