In general, the answer is yes, you can use mongodb for this, but mongodb does not have an http interface for working with files like apache / random-webserver. If you need to add an additional feature, such as application authentication for these files, then this may make more sense as an example.
You can create an infrastructure around mongodb where you replicate the changes and write an http interface for working with files (for example, nginx-gridfs or any other component of httpff gridfs). But you will need to build / integrate them, test and deploy it all. Using a file system with a standard web server to provide files is very well tested and documented; many systems use rsync to efficiently replicate files to many nodes.
There are so many things that Cdn does that you have to reprogram it, it may not make sense to solve all this yourself, but that is really a different issue.
Scott Hernandez
source share