O'Reilly logo
  • Abhishek Singh thinks this is interesting:

When the key is null and the default partitioner is used, the record will be sent to one of the available partitions of the topic at random. A round-robin algorithm will be used to balance the messages among the partitions.

From

Cover of Kafka: The Definitive Guide

Note

Does the key always need to describe how the hash code should be ?