rd_kafka_msg_partitioner_consistent_random

@brief Consistent-Random partitioner.

This is the default partitioner. Uses consistent hashing to map identical keys onto identical partitions, and messages without keys will be assigned via the random partitioner.

@returns a \"random\" partition between 0 and \p partition_cnt - 1 based on the CRC value of the key (if provided)

extern (C) nothrow @nogc
int32_t
rd_kafka_msg_partitioner_consistent_random
(,
const(void)* key
,
size_t keylen
,,
void* opaque
,)

Meta