Should I store the image in MongoDB or in the local file system (via Node.js)

I am using Node.js for my project.

Should I store the image on the local file system or store it in MongoDB?

Which method is more scalable?

+5
source share
3 answers

The most scalable solution is to use a shared storage service such as Amazon S3 (or create your own).

This allows you to scale horizontally much easier when you decide to add machines to your application level, as you don’t have to worry about any portable nightmares.

, , . , , node.js , , .

+5

GridFS, , nginx.

+2

All Articles