Correct S3 Bucket Architecture for Microservices

0

I am building a microservices web application. I want to know the correct S3 structure for storing my data. The web application will have a couple of unrelated microservices and will be used by thousands of users. I don't know if all data should be stored under one single bucket in the format: arn:aws:s3:::my-bucket/service-N/user-M/* or have a bucket for each microservice and a folder for each user: arn:aws:s3:::service-N-bucket/user-M/*. My intuition is to go for the second option since its more decoupled. Is there any best practice regarding this matter?

apssg
已提问 1 年前704 查看次数
1 回答
1

Hi,

You could read Best practices design patterns: optimizing Amazon S3 performance before creating your structure additionally I could suggest you to read Organizing objects using prefixes, Performance Guidelines for Amazon S3 and Performance Design Patterns for Amazon S3.

Link - https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimizing-performance.html

Link - https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html

Link - https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimizing-performance-guidelines.html

Link - https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimizing-performance-design-patterns.html

All those information will help you to define your prefix structure to save your data into s3.

AWS
Jorge
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则