asp.net - How do I design the file storage issue? -
I am working on an application that creates video files and stores them in a folder in C: \ Drive I think that in future there will be a large number of these files and we will end up out of disk space some time (on our VPS). When the time comes that we have to upgrade, we either plan to store files to any of the cloud providers, or our current provider can add another disc (called D: \ drive).
Either way, I would like to design the app in a way that in the future, going to different places will not be an issue and will be transparent to the end user.
The code that creates these files supports 2 methods:
myObj.SetOutputToDisk (& lt; path to store & gt;); Or myObj.SetOutputToMemoryStream (MS);
If we go with Cloud Architecture, I think we can have the following combination:
- Cloud files + existing VPS or < / Li>
- Cloud Files + Cloud Windows Server
Looking at the unknown at this time, how do I design it?
The files are served from the subdomain: media.yourdomain.com
.
In this way, you can allocate DNS records to new storage providers at some point in the future.
Additionally, I recommend storing media files on an OS disk on another physical disk. So store a D: \ drive and media there.
Comments
Post a Comment