sql server - How to store lots of user uploaded files in Asp.net in load balanced hosting -
i'm building asp.net site users can upload files user account , download them whenever logged in. files typically less 5mb , users can download files have uploaded (i.e can't download else's file). there around 100k users , each potentially upload around 2 or 3 files. live site load balanced
i'm thinking storing these files in central db (sql server) blob nice because...
as site load balanced, each node can access file central db. no need worry having shared folder store files
i can more ensure user's download own files.
backing db automatically includes file blobs
only downside i've read performance, how bad can be?
if store these files in file system, there problem storing in 1 folder?
what best approach this?
if want fast, store data filesystem. in case dont need read amount of data sql server. in case 2 things:
1st approach: store files in 1 single folder (ntfs limit: 4,294,967,295, fat limit: 268,435,437)
2nd approach: create each user (userid) separate subfolder. prefer on 1st approach.
with newer versions of sql server can use filestream.
it interesting knew
- how many users have
- how many uploads per day/hour/minute have
- how many downloads per day/hour/minute have
- how many uploads @ same time have
- how many downloads @ same time have
- what size of systems have
- is internally used/externally - bandwidth/network load have etc.
Comments
Post a Comment