ExitAmazon S3: externalized application state1 / 9
Explanation

External state needs more than strong reads

How object consistency and conditional requests govern shared application state stored outside compute instances. · advanced

Putting authoritative application state in Amazon S3 lets replacement compute instances recover it without relying on another instance's memory or disk. This lesson uses object API requests against a general purpose bucket. Local copies are disposable; S3 holds the shared state.

S3 provides strong read-after-write consistency for object writes, overwrites, and deletes. After a successful write, a subsequent GET sees that write or a later write; subsequent LIST requests reflect the change. Updates to one key are atomic: a reader gets a complete old or new object, not a partially replaced object. These guarantees do not make an application's local cache fresh.

Consistency is not concurrency control. Two instances can both read a counter of 7, independently calculate 8, and successfully write 8. Each request can be strongly consistent while one increment is lost. S3 does not turn a GET followed by an unconditional PUT into one atomic read-modify-write operation.