Suppose, I have 3 Kafka broker, a zookeeper, 50 producers, 50 consumers, and 1 topics (testTopic1
).
And All the consumer are subscribed to testTopic1
. Now I will send 50 messages at the same time with the 50 producers to the same topic (testTopic1
) . Now I want that Kafka cluster do not send more than 40 messages at the same time to consumers. The remaining 10 will keep on queue or drop it.
Maybe it is a load balancing in Kafka. I do not understand how I will do this work. Im new in Kafka please help.