Ethan
Ethan

Reputation: 51

MongoDB GridFS for HA file storage

I am working on a project where I need to store many user uploaded files and provide redundancy. For file uploads, I was first considering to place user uploaded files in a NFS "uploads" directory and use Gearman to grab the file, move it to it's permanent storage locations, then update MySQL with the files info (filesize, date...etc).

Now that I have learned of MongoDB's GridFS, I am thinking this may be a better approach than NFS & Gearman. With GridFS, I don't need NFS and the redundancy is built in - but I would be putting a lot of trust into MongoDB.

With this all said, I was wondering if anyone had any thoughts? Does anyone know of a large deployment of GridFS? I know many people are using MongoDB for NoSQL, but I have not found many references to GridFS deployments.

Thanks!

Upvotes: 0

Views: 1212

Answers (2)

Jon Skarpeteig
Jon Skarpeteig

Reputation: 4128

You can also check out MogileFS, which is a distributed storage system.

Upvotes: 0

sdot257
sdot257

Reputation: 10366

We're using GridFS for one of our projects. I'm also using gearman to distribute the job queue so that clients don't have to wait for a file to finish uploading. Once the user hits submit, php sends the job to gearman and then I have "workers" that do the inserting into MongoDB.

Upvotes: 1

Related Questions