synchronizationfile-uploadfilesystemsweb-farmhigh-traffic

How and where to store user uploaded files in high traffic web farm scenario website?


i am working on a website which deploy on web farms to serve high traffic. where should i store user uploaded files? is it wise to store uploaded files in the file system of the same website and synchronize these files in all web servers(web farm)? or should i use another server to store all uploaded files in this server to store files in a central location? if separate file server will be a better choice, than how can i pass files from web server to that file server efficiently? or should i upload files directly to that file server?


Solution

  • For security reasons you want to serve the files from a different sub-domain anyways. This is easier by dedicating one server for these files, if the traffic for these files warrants it, but that also creates a single point of failure and bottleneck which you probably want to avoid.

    You can have all web servers serve the files from a central file server or local cached copies. This depends a lot on if the files ever change.