Manage Client Socket Pool

偶尔善良 提交于 2019-12-10 11:08:09

问题


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 ?


回答1:


Here are some object pool implementations you may try:

  • Vibur Object Pool
  • fast-object-pool

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



来源:https://stackoverflow.com/questions/43735067/manage-client-socket-pool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!