Course contentsShow
← Cloud and Infrastructure
Lesson 150 of 2,9893. Storage PrimitivesFree lesson

Consistency Models in Object Storage

Learning about strong read-after-write consistency for new objects and eventual consistency for overwrites.

Consistency Models in Object Storage

What you'll learn: How object storage systems guarantee consistency when you create new objects versus when you update existing ones.


Why Consistency Matters

When you upload or modify objects in the cloud, you need to know when those changes become visible to everyone. Consistency models define these guarantees—essentially, the rules about what data you'll see after a write operation.

Two Key Consistency Types

Read-After-Write Consistency for New Objects

When you upload a new object (one that didn't exist before), most modern object storage systems provide strong read-after-write consistency. This means:

  • You upload photo.jpg to your bucket
  • Immediately after the upload succeeds, any read request for photo.jpg will return the new file
  • No waiting, no uncertainty—what you wrote is instantly visible globally

Analogy: Like posting a new document to a shared bulletin board. The moment you pin it up, everyone walking by can see it.

Eventual Consistency for Overwrites

When you overwrite an existing object with the same key, you might encounter eventual consistency:

  • You upload a new version of report.pdf (replacing an old one)
  • For a brief moment, some readers might still see the old version while others see the new one
  • Eventually (typically within seconds), everyone sees the updated version

Analogy: Like replacing a poster on that bulletin board—for a few seconds, people might glimpse the old poster before you've fully replaced it.

Why the Difference?

New objects are easier to track globally. Overwrites require coordinating updates across multiple storage servers in different locations, which takes slightly longer to propagate.

Key Takeaway: Object storage gives you instant consistency for new objects (read-after-write) but may have brief delays when overwriting existing objects (eventual consistency).