Questions tagged [eventual-consistency]

Eventual consistency is a consistency model used in distributed computing that informally guarantees that, if no new updates are made to a given data item, eventually all accesses to that item will return the last updated value.

Eventual consistency is widely deployed in distributed systems (often under the moniker of optimistic replication) and has origins in early mobile computing projects. A system that has achieved eventual consistency is often said to have converged, or achieved replica convergence. While stronger models, like linearizability are trivially eventually consistent, the converse does not hold.

Eventually consistent services are often classified as providing BASE (Basically Available, Soft state, Eventual consistency) semantics (in contrast to traditional ACID (Atomicity, Consistency, Isolation, Durability) guarantees).Eventual consistency is sometimes criticized as increasing the complexity of distributed software applications. This is partly because eventual consistency is purely a liveness guarantee (reads eventually return the same value) and does not make safety guarantees: an eventually consistent system can return any value before it converges.

Wikipedia

252 questions
148
votes
7 answers

Eventual consistency in plain English

I often hear about eventual consistency in different speeches about NoSQL, data grids etc. It seems that definition of eventual consistency varies in many sources (and maybe even depends on a concrete data storage). Can anyone give a simple…
Roman
  • 59,060
  • 84
  • 230
  • 322
36
votes
3 answers

Amazon - DynamoDB Strong consistent reads, Are they latest and how?

In an attempt to use Dynamodb for one of projects, I have a doubt regarding the strong consistency model of dynamodb. From the FAQs Strongly Consistent Reads — in addition to eventual consistency, Amazon DynamoDB also gives you the flexibility…
31
votes
4 answers

How to handle set based consistency validation in CQRS?

I have a fairly simple domain model involving a list of Facility aggregate roots. Given that I'm using CQRS and an event-bus to handle events raised from the domain, how could you handle validation on sets? For example, say I have the following…
26
votes
3 answers

What does read-after-write consistency really mean on new object PUT in S3?

Amazon documentation (http://docs.aws.amazon.com/AmazonS3/latest/dev/Introduction.html#ConsistencyModel) states: "Amazon S3 provides read-after-write consistency for PUTS of new objects in your S3 bucket in all regions with one caveat." Ignoring…
Alf
  • 702
  • 1
  • 7
  • 13
24
votes
2 answers

Elasticsearch read and write consistency

Elasticsearch doesn't have "read consistency" param (like Cassandra). But it has "write consistency" and "read preference". Documentation says the following about Write Consistency Write Consistency To prevent writes from taking place on the…
Vladimir Sorokin
  • 1,605
  • 3
  • 13
  • 20
22
votes
1 answer

Does mySQL replication have immediate data consistency?

I am considering a noSQL solution for a current project, but I'm hesitant about the 'eventual consistency' clause in many of these databases. Is eventual consistency different than dealing with a mySQL database where replication lags? One solution I…
inquiring minds
  • 1,275
  • 1
  • 12
  • 16
20
votes
4 answers

Eventual Consistency

I am in the early stages of design of an application that has to be highly available and scalable. I want to use an eventual consistency data model for this for a number of reasons. I know and understand why this is an unpopular architectural choice…
JimboV
17
votes
7 answers

GUI recommandations for eventual consistency?

When using distributed and scalable architecture, eventual consistency is often a requirement. Graphically, how to deal with this eventual consistency? Users are used to click save, and see the result instantaneously... with eventual consistency…
Steve B
  • 34,941
  • 18
  • 92
  • 155
17
votes
3 answers

Is ZooKeeper always consistent in terms of CAP theorem?

Is that correct that ZooKeeper is always CP (in terms of CAP theorem)? Or is there anyway to use it as AP for service discovery needs?
15
votes
2 answers

What is maximum Amazon S3 replication time on file upload?

Background We use Amazon S3 in our project as a storage for files uploaded by clients. For technical reasons, we upload a file to S3 with a temporary name, then process its contents and rename the file after it has been processed. Problem The…
14
votes
5 answers

Eventual consistency with both database and message queue records

I have an application where I need to store some data in a database (mysql for instance) and then publish some data in a message queue. My problem is: If the application crashes after the storage in the database, my data will never be written in the…
14
votes
1 answer

RavenDB and stale indexes on application startup

I have an application that: Uses an embedded RavenDB database With the Monotonic read option With static indexes I've noticed that when the application starts up, the indexes are all temporarily stale even if they weren't stale when the…
Paul Stovell
  • 31,336
  • 15
  • 76
  • 107
13
votes
1 answer

Read Operation in Cassandra at Consistency level of Quorum?

I am reading this post on read operations and consistency level in Cassandra. According to this post: For example, in a cluster with a replication factor of 3, and a read consistency level of QUORUM, 2 of the 3 replicas for the given row are…
brain storm
  • 25,842
  • 54
  • 187
  • 349
12
votes
5 answers

Meaning of eventual consistency in Cassandra?

What is the meaning of eventual consistency in Cassandra when nodes in a single cluster do not contain the copies of same data but data is distributed among nodes. Now since a single peice of data is recorded at a single place (node). Why wouldn't…
Rajat Gupta
  • 23,343
  • 56
  • 165
  • 281
12
votes
1 answer

How to maintain denormalized consistency in NoSQL?

Say I have two collections, each with value independent of each other, but each related to one another. They are photos and users. There is a one-to-many relationship between users and photos. An example of denormalized data: users: { "id":…
Snixtor
  • 3,969
  • 1
  • 26
  • 49
1
2 3
16 17