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
posta un anno fa704 visualizzazioni
1 Risposta
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande