The partitioning key indicates the destination partition of the message within the producer. A hashing based partitioner determines the partition ID when the key is given.