I'm building a reddit-like app on which you can share memes (no videos for now). I read online on the best way to store them, and I found out that the choice comes down on whether you use file system or not. The other option is to simply store them in a database like I currently do. Since memes mostly aren't quality dependent images, I was wondering if it's worth to redesign the system to use file systems and paths stored in db.
The way I currently do it is by storing theirs representations base64-encoded in MongoDB. I also found out that this isn't optimal since base64 encoding consumes about 33% more storage space in comparison to raw binary. So the first optimization I'm thinking of is storing BLOBs
Current calculation is roughly as following - about 300 memes ~ 30mb So we get about 100KB per meme, and fetching times are pretty good. So I'm wondering if I should implement something like google buckets?