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
asked a year ago669 views
1 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions