Re: How many connections per consumer/producer

2016-06-30 Thread Ben Stopford
Hi Dhiaraj That shouldn’t be the case. As I understand it both the producer and consumer hold a single connection to each broker they need to communicate with. Multiple produce requests can be sent through a single connection in the producer (the number being configurable with max.in.flight.req

How many connections per consumer/producer

2016-06-30 Thread dhiraj prajapati
Hi, I am using new Kafka Consumer and Producer APIs (version 0.9.0.1) I see that my consumer as well as producer has multiple connections established with kafka brokers. Why is this so? Does the consumer and producer APIs use connection pooling? If yes, where do I configure the pool size? Regards,