Hi Guys,
Working on an app which has a simple photo uploader, and I'm trying to figure out the best way to approach having multiple photo servers.
My app is running on Windows 2008, and to start I'll have another server setup just for storing the files.
www01
images01
images01 will basically just be a file server, and I'm going to have a directory that is shared to www01.
I have a few ideas on how to handle this. So far, this one is winning.
From within my webapp, have a folder called 'imagehost'. Within this folder, I would create another folder called images01 which would actually be a mapped drive to the images01 server. This would make the files appear to be hosted from within the website's directory
aka company.com/imagehost/images01/dir/dir/dir
This way, if I need to add another server, it's going to be really just adding another folder to the main imagehost folder. It would be really easy to manage.
company.com/imagehost/images01/dir/dir/dir
company.com/imagehost/images02/dir/dir/dir
company.com/imagehost/images03/dir/dir/dir
Any downsides to this approach?
Working on an app which has a simple photo uploader, and I'm trying to figure out the best way to approach having multiple photo servers.
My app is running on Windows 2008, and to start I'll have another server setup just for storing the files.
www01
images01
images01 will basically just be a file server, and I'm going to have a directory that is shared to www01.
I have a few ideas on how to handle this. So far, this one is winning.
From within my webapp, have a folder called 'imagehost'. Within this folder, I would create another folder called images01 which would actually be a mapped drive to the images01 server. This would make the files appear to be hosted from within the website's directory
aka company.com/imagehost/images01/dir/dir/dir
This way, if I need to add another server, it's going to be really just adding another folder to the main imagehost folder. It would be really easy to manage.
company.com/imagehost/images01/dir/dir/dir
company.com/imagehost/images02/dir/dir/dir
company.com/imagehost/images03/dir/dir/dir
Any downsides to this approach?
