Best way to store mix of large and small files

Viewed 91

I am developing asp net mvc core application in which working with many small and large files. I hear, that i can to store large files (> 16 mb) in MongoDb GridFs, but i have many files smaller then 16 mb too. Please, help me choose the better way for storing files.

Should I use a combination of the following approaches:

  1. Store large files in the MongoDb Gridfs
  2. Store small files in disk, in filesystem

If i choose this combination, in the code, I will have 2 services that work differently with files (depending on the size). Is it right solution?

0 Answers
Related