Each producer usually establishes two TCP connections to the broker.
Each producer usually establishes two TCP connections to the broker. One TCP connection is used to update metadata and the other is used to send messages.
For more information, see How TCP Connections are Managed by kafka-clients scala library.