Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is listing Amazon S3 objects a strong consistency operation or eventual consistency operation?

Tags:

amazon-s3

I know how consistency works when you create/update/delete a file on S3. What about S3 bucket listing operation? Is it strongly consistent or eventually consistent?

like image 609
Alex B Avatar asked Jul 19 '16 15:07

Alex B


People also ask

Which type of consistency model does Amazon S3 provide for puts of new objects?

Amazon S3 provides read-after-write consistency for PUTS of new objects in your S3 bucket in all regions with one caveat.

What is strong consistency and eventual consistency?

Whereas eventual consistency is only a liveness guarantee (updates will be observed eventually), strong eventual consistency (SEC) adds the safety guarantee that any two nodes that have received the same (unordered) set of updates will be in the same state.

Why is S3 eventually consistent?

Amazon S3 offers eventual consistency for overwrite PUTS and DELETES in all Regions. Updates to a single key are atomic. For example, if you PUT to an existing key, a subsequent read might return the old data or the updated data, but it never returns corrupted or partial data.

Which data consistency models are available with Amazon S3?

Amazon S3 data consistency model. Amazon S3 provides strong read-after-write consistency for PUT and DELETE requests of objects in your Amazon S3 bucket in all AWS Regions. This behavior applies to both writes to new objects as well as PUT requests that overwrite existing objects and DELETE requests.


1 Answers

The preceding answer of @Michael had been accurate before latest announcement from AWS.

AWS has recently announced that both read after write operation and list operation is now strongly consistent.

Snippet from AWS:"After a successful write of a new object, or an overwrite or delete of an existing object, any subsequent read request immediately receives the latest version of the object. S3 also provides strong consistency for list operations, so after a write, you can immediately perform a listing of the objects in a bucket with any changes reflected."

Reference - https://aws.amazon.com/s3/consistency/

like image 142
Tejaskumar Avatar answered Nov 17 '22 15:11

Tejaskumar