Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

243
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!