HDFS vs GridFS: When to use which?

iCode picture iCode · Jan 31, 2012 · Viewed 7.9k times · Source

HDFS and GridFS are two great technologies for distributed file saving but what are their differences? What type of problems fit better to each?

Answer

om-nom-nom picture om-nom-nom · May 22, 2012

HDFS intended for batch processing (you're know, when you running a query that will read many of your files one-by-one), but really suck when you doing random access operations and it is pain in the neck to maintain it or even deploy (you're know, all of these Zookepers, Namenodes and so on). On the other hand GridFS is slower at batches, but not in the case when you do a lot of random accesses, but have a bigger storage overhead compared to HDFS.

I would say that you should use HDFS for analitycs and GridFS for backing web-site.