I am creating a web app for some co-working. I have text with assets (most of them pictures in print quality, say 5MB, all in all about 5GB per month).
I am going to host this on amazon’s cloud using EC2 instances for a node.js server and a mongodb with attached block storage.
The assets are private to an object so not everyone will have access to it.
How should i handle the assets? Save them as binarys in the database or load them up to S3? (or any other amazon service)
Does somebody have experience on this? Or maybe some helpful links. Thanks in advance
I would probably store the assets on S3 without public access, then you can grant access to authorized users by generating temporal signed urls from your webservers when needed.
This way you can leverage your servers complexity by handing over the storage dirty work to S3, and you can still have your files accessed only by who has access to them.