You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Vladimir Picka <os...@gmail.com> on 2016/07/27 12:41:33 UTC

How many TCP connections Java producers opens to feed data to broker?

Hello,

does it use just one connection to one broker? One connection to each
broker? Or opens multiple connection to one broker to achieve higher
throughput?

 

Many thanks,

Petr


Re: How many TCP connections Java producers opens to feed data to broker?

Posted by Ewen Cheslack-Postava <ew...@confluent.io>.
One connection to each broker. You can get very high throughput even with a
single TCP connection. The producer handles batching internally so you
don't send small requests if you have high data rates.

-Ewen

On Wed, Jul 27, 2016 at 5:41 AM, Vladimir Picka <os...@gmail.com>
wrote:

> Hello,
>
> does it use just one connection to one broker? One connection to each
> broker? Or opens multiple connection to one broker to achieve higher
> throughput?
>
>
>
> Many thanks,
>
> Petr
>
>


-- 
Thanks,
Ewen