Best way to save files?

My first idea would be to just use a filesystem and store my files there, but there are many advantages to use a database, since it's faster and supports ACID consistency. After looking at the pros and cons we decided to just use a MongoDB and save the bytestreams of the files in there. The data is more consistent, we can get them very quickly and since we already had a database setup we had not much effort to create our own "filesystem" in the database.

Comments

Thanks for new ideas regarding this topic!
Kresimir Kasal - Mon, 12/16/2019 - 05:17 :::
No answers yet.