While working on the django website and wondering, would it be wise to store my media on a mounted nfs partition?

Firstly, I have experience building small medium sized sites with php, so forgive me if this question seems to be asinine. I want to know if it is a normal / common / reasonable practice to store media (user uploaded photos, videos, etc.) in the installed nfs section? I was just about to put all the media files in the / media folder, as I always did in php, but on a huge site, having 1 million + images in one directory is not ... a scalable way to continue.

Am I at least on the right track with my NFS thinking?

Hooray!

+4
source share
1 answer

I think you are probably ahead of yourself. You can always transfer the media to a separate server later. I do not think that NFS will definitely go anyway. Itโ€™s better to just serve media from another box directly. If you want this to be scalable in advance, consider using GridFS . It's easy to work with Python, and you can even use it as a repository for Django.

+2
source

All Articles