Use DO as Webhost, Shared Server as File Storage?

Posted January 10, 2018 3.7k views
NginxUbuntu 16.04Block Storage


Is it possible to use DO as the main VPS Website and attach a shared hosting account through VPN/SSH Tunnel as the file storage? Kind of like having multiple VPS and NFS Mounting.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

That would probably be possible however I don’t think it’s really the best idea. Depending on what language you use it might be a better idea to just pay a service to handle your storage. Usually, it’s very difficult to handle lots of storage and it’d be easier just to get a service like AWS S3. I was looking into this myself and I personally used S3. It’s got a very good API (for Go anyway).

If you mean paying a second VPS with another hosting package it’d be slower, harder to use and a lot more expensive. Mainly because you’d have to pay for an entire other CPU and RAM package that you won’t even use. Just paying for an extra HDD from S3 will only cost around $0.023 per GB each month.

Not to mention less work, you only need a DB storing file IDs and then just upload your file as bytes to the server and it’s done. Dealing with writing and reading is difficult especially as you get to a large scale.

Hope this helps.