Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manage Client Socket Pool

I need to manage long running TCP socket connections to an external server from my Java application. I'm looking for a good socket pool so I will be able to re-use the sockets.

There is another solution than org.apache.commons.pool2 ?

like image 379
Mercer Avatar asked Jul 14 '26 19:07

Mercer


1 Answers

Here are some object pool implementations you may try:

  • Vibur Object Pool
  • fast-object-pool
    Fast Object Pool vs Commons Pool v1.x

I suggest you to benchmark the object pool implementations in order to find the most appropriate one for your project.

like image 200
Stephan Avatar answered Jul 17 '26 21:07

Stephan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!