As a mass file upload storage solution requires the following requirements
1, high scalability (easy to add server).
2, ease of use.
3, high reliability.
4, flexibility, low maintenance costs.
There may be many kinds of solutions, as follows is a solution
Two of these services (for example: WEBSERVICE,WEBAP) are used for file upload of read-write separation, a server cluster, two server and file information tables.
When a client wants to upload a file to the storage service, the service randomly selects the server that is running properly by looking for the state of the server in the File Server state table. Write the file and then write the information stored in the file to the File information table, and finally return the information to the client.
When the client wants to download the file, get the file service to download to the client by looking for the file information table and then reading the file to which server it is stored, and then using the File Server state table to locate the server to read the file.
In this solution, if you want to ensure stability also need to backup the server stored files, you can write a service for file backup, this should be done according to the actual situation. Then read and write services to do pressure streaming, you can use the operating system for service cluster deployment.
This involves a cross domain server operation file
1, the shared folder, the service is relatively simple, directly with the IO stream to write on the line, but the path to change the problem. To ensure security, the server cluster is added to a domain (domain control).
2, on the cluster server to write a service, with the socket (TCP) to store files.
3, FTP implementation of storage.