Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
Kafka Client Connection Pooling

Does it make sense to perform producer/consumer connection pooling of kafka clients?

Does kafka internally maintain a list of connection objects initialized and ready to use?

We'd like to minimize time of connection creation, so that there is no additional overhead when it comes to send/receive messages.

Currently we're using apache commons-pool library GenericObjectPool to keep connections around.

Any help will be appreciated.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Kafka clients maintain their own connections to the clusters.

Both the Producer and Consumer keep connections alive to the brokers they are interacting with. In case they stop interacting, after connections.max.idle.ms the connection will be closed. This setting also exists on the broker so you may want to verify with your admin if they changed this value.

So in most cases, once started Kafka clients don't create many new connections but just use the ones created at startup

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda