Code
Code

Reputation: 6251

S3 upload: are waiters needed?

I'm using PHP to upload a file to S3 using PutObject.

The file needs to be accessible right after uploading. Do I need to use Waiters to ensure that?

Under what circumstances would the file not be available right after the PutObject completes? I did some simple testing by calling HeadObject right after PutObject and it seems that there is no need for Waiters.

Upvotes: 0

Views: 203

Answers (1)

Chris Franklin
Chris Franklin

Reputation: 4004

S3 uses read-after-write consistency so you shouldn't need a Waiter if the PUT has completed. For more information check out the FAQ for S3.

Upvotes: 2

Related Questions