I'm developing CMS which runs as a single instance, but serves multiple websites of different users. This CMS needs to store files in storage. Each website can have either few images but also thousands of objects. Currently we serve around 5 websites, but plan to have hundreds, so it must scale easily.
Now I'm thinking about two possible ways to go. I want to use S3 for storage.
- solution is to have single bucket for all files in my app
- solution is to have one bucket for each website.
According to AWS docs, S3 can handle "virtually unlimited amount of bytes", so I think first solution could work well, but I'm thinking about other aspects:
- Isn't it just cleaner to have one bucket for each website? Is it better for maintance?
- Which solution is more secure, if so? Are there some security concerns to care about?
- Is same applicable to other S3-like services like Minio or DigitalOcean Spaces?
Thank you very much for your answers.