[Source code and documentation sharing] Based on Socket Programming analog implementation of distributed storage file

1, functional requirements analysis

Socket-based simulation program of the present application to achieve distributed storage of files, need to implement the functions of the four modules.

1.1 FileServer

FileServer servers, mainly used for load balancing, file management and information storage node information. When uploading a file, the client needs to request information storage node to FileServer, this time in the allocation of server storage node to consider load balancing. On FileServer information Map collection holds the storage node and file through. Before the server downtime information Map collection stored in serialized to a file, the next start time and then come back from the file serialization.

 

Reference documentation and complete documentation and source code Download:

https://www.write-bug.com/article/2370.html

 

Guess you like

Origin blog.csdn.net/demongwc/article/details/91360752