I was thinking of building an app to serve audio content. The first question I get is how to store it. Two obvious solutions that occur are:
- Dump in database as BLOB
- Dump in filesystem, and store path in DB
There was a similar question here and the answer urged to store in file-system. I can think of at least one disadvantage of storing in files, i.e. I loose all backup, recovery and other awesome features of databases.
Also I wanted to know how both solutions would fare in terms of scalability.
Does anyone know how flickr or youtube does it?
Or does anyone has even more creative(scalable :)) ideas?