partitionOf

open suspend override fun partitionOf(topic: String, key: String): Int

The partition the producer's default partitioner puts a message keyed key in: murmur2 of the key's UTF-8 bytes over the topic's partition count, as KafkaTopicProducer sends with no partition of its own.