Our intranet application is used to document and store office files. Both app and server are hosted remotely on the same server. Due to fact that our app server is changed every couple of years, we want to store files on a machine/location other then the app server.

Since app and files were at the same location it was easy to manipulate files, but with this change I am interested what should we be aware of?

We need to be able to upload, edit, rename, delete files. Are cloud service only way to make this happen?

有帮助吗?

解决方案

A simple approach could be:

  • Set up a file server. For good performance it should have good connectivity to the app server, preferably in the same network.

    If you choose the SMB protocol, this could be a windows file server or a linux server using samba.

  • Mount the share on the app server as a drive letter.

    This can be done using net use Q: \\FileServer\ShareName on the command line. Windows explorer includes some GUI for this as well, but I forgot the details.

Then use the files as if they were local. The latency and bandwidth limitations of the connection might lead to reduced performance, especially if the server is far away.

I think SMB is the only protocol where mounting is built into windows, but you could use other protocols by installing appropriate third party software.


A different approach modifying your application to use some storage API. For example the Amazon S3 API is relatively popular. Note that this does not require you to use Amazon S3, since there are other implementations of this API.

许可以下: CC-BY-SA归因
scroll top