Kafka Tuning
The main property you can adjust to tune Kafka throughput is the number of partitions.
To determine the number of partitions required to attain your desired throughput, calculate the throughput for a single producer (p) and a single consumer (c). Then calculate your desired throughput (t). Assign the number of Kafka partitions equal to max(t/p, t/c). For more information, see Confluent - How to choose the number of topics/partitions in a Kafka cluster.