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 <oss.mli...@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