title: MongoDB as file storage
body: <p>i'm trying to find the best solution to create scalable storage for big files. File size can vary from 1-2 megabytes and up to 500-600 gigabytes. </p>
  
  <p>I have found some information about Hadoop and it's HDFS, but it looks a little bit complicated, because i don't need any Map/Reduce jobs and many other features. Now i'm thinking to use MongoDB and it's GridFS as file storage solution.</p>
  
  <p>And now the questions:</p>
  
  <ol>
  <li>What will happen with gridfs when i try to write few files
      concurrently. Will there be any lock for read/write operations? (I will use it only as file storage)</li>
  <li>Will files from gridfs be cached in ram and how it will affect read-write perfomance?</li>
  <li>Maybe there are some other solutions that can solve my problem more efficiently?</li>
  </ol>
  
  <p>Thanks.</p>