I went to the cnblogs activity on Saturday and chatted with Dudu. He suddenly asked me: How did your company's users upload images? Dudu's life is really good, because my company's DFS is what I did. I also gave a lecture on cnblogs last month about DFS. It seems that the solution for users to upload files is still urgent, so DFS has been open-source. The latest version is released today. The DFS client is version 1.2 and the server is version 1.1.
The Client Version solves the problem of "image confusion caused by sudden network interruption of uploaded files" and adds the following restrictions: Number of retries of uploaded files, the "Directory Service" and "force specified upload storage" functions are added to the server.
The network interruption of the uploaded file may cause image confusion. This means that when a user uploads an image, the network is suddenly interrupted, and the next user uploads the image. This may return the path that should be returned to the previous user. The reason is that the thread pool is cleaned up in a multi-threaded environment;
The number of file retries allowed. This phenomenon occurs when the server is down, the client may not respond for a long time, because the client is constantly connecting to the server;
The directory service allows you to add the directory depth within 256 characters when the returned path is satisfied. The reason is that when you access a file directly through the Web instead of using the dfs api, a large number of files need to be migrated. You can add a storage, then, the "mount point in Linux + Directory Service" function can be used to transfer site storage without moving data without affecting access to previously stored images.
Forcibly specify the upload storage. This function is used for system maintenance without interrupting user access when the service is restarted, provided that you use "Hot Backup ". You can specify a storage before maintenance, maintain and update other storage, and then configure it to the original mode.
If you have any questions, contact me!
Appendix:
DFS server Open Source Address: http://code.google.com/p/fastdfs-revision/
DFS. Net client Open Source Address: http://code.google.com/p/fastdfs-net-client/
Another: I wrote a blog about chinajoy yesterday. The result is that it is not a technology.ArticleIt cannot be placed on the home page. In fact, showgirl is still good. After discussing with Kun for a long time, he finally ended in failure. Therefore, you can only make an advertisement here. Haha! Friends who need to check can enter and attach the connection: Success! Welcome to shoot bricks.