FastDFS Java SDK v1.28 released!

    The connection pool function that everyone has been calling for. N years ago, the community had a package provided by a third party, but the stability was not very good. I have reservations about its performance. Recently, I found a strong and potential buddy and asked him to help realize the connection pool function based on the FastDFS Java SDK.


    Whether to enable the connection pool function is set in the configuration file fdfs_client.conf or fastdfs-client.properties  . If the connection pool is not used, all connections are in short connection mode. For performance reasons, it is strongly recommended that you use the connection pool function directly.


    Is it hard to implement a connection pool? Those who are difficult will not, those who will meet are not difficult. Need to introduce third-party components? Knowing it and knowing why, it can be realized independently. For solution design and program implementation, simplicity means controllability, which is usually more efficient. On the premise of meeting specific needs, the design and implementation are as simple as possible, requiring strong technical skills.


    When this buddy was testing the connection pool function, he found a bug introduced by the FastDFS server v6 version, and I fixed it as quickly as possible. The network communication protocol of FastDFS is very convenient for C language processing, but it digs a hole for cross-language processing (such as Java). Fixed-length strings in the FastDFS communication protocol must be padded with ASCII 0 (of course, spaces can also be used) in order to support cross-language. Java needs to trim such strings.


    It is recommended that you use the FastDFS Java SDK v1.28, and the FastDFS server please use the newly released v6.06 version. If you have any questions or suggestions during use, please feel free to feedback and communicate.

This article is shared from the WeChat public account - FastDFS Sharing and Exchange (fastdfs100).
If there is any infringement, please contact [email protected] to delete it.
This article participates in the " OSC Yuanchuang Project ", you are welcome to join and share with us.

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324145761&siteId=291194637