Skip to content
Distributed systems

Consistency: what does “up to date” mean?

A clear path through replicas, delay, and the promises an application can make.

Community contributor12 min readQuick checkSources

When data is copied across machines, updates take time to travel. During that interval, two readers can see different values even though both are talking to healthy systems.

Consistency is a promise about observations

Strong consistency can make a read behave as if it happened after the latest completed write. Eventual consistency allows a delay but promises that replicas converge if updates stop. Neither phrase says whether the product feels correct; that depends on what a user needs to see.

Quick check

A profile photo can take a few seconds to appear on every device. Which consistency model may be acceptable?

Show answer

Eventual consistency may be acceptable if the system converges quickly and the user can still see their own upload on the device they used.

Sources

  1. 1.Designing Data-Intensive Applications · book · Kleppmann (opens in a new tab)
  2. 2.Replication · PostgreSQL · docs (opens in a new tab)

Was this chapter useful?

Editors read every answer.

Star this chapter

Each star goes once to every reader who improved this chapter.

Finished reading?

Mark it to keep your place in the course.