Let's say I have two brokers.
I read that KafkaProducer creates producer thread equal to number of brokers. So I will have two internal threads in this case.
Let's say I have 5 topics and I just got 200 messages per second. How does kafka perfom batching?
batch.size=30 messages. [topic1=5, topic2=10, topic3=3, topic4=10, topic5=2 messages] These are the top order messages and corresponding topics.
How does kafka perform batching?