Kafka production data cannot be evenly distributed to each partition
kafka Producer data is uneven and cannot be evenly distributed to each partition, which easily causes consumption backlog. The reason for this is that the producer uses a fixed key.
solutions
if you set key,key, don't use a few fixed constants.
Without key, it will be randomly distributed to partitions; it will be evenly distributed; it is recommended to have a value with business meaning, such as order number.
Normally, the data should be evenly distributed on each partition.