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

278 questions
2
votes
1 answer

Eventual consistency in enterprise application

Going through the microservices docs and talks, I'm getting the point that using distributed transactions over XA protocol is not a good choice for ensuring consistency of data, because it slows down the system and not all the endpoints support it,…
2
votes
2 answers

Eventual consistency on user registration

Our project is developed using DDD. We decided to move user identity to a single microservice that will be used to check user identity, issue and validate tokens. Now, since accounts and users are located in a different microservice that is solving…
mko
  • 6,638
  • 12
  • 67
  • 118
2
votes
2 answers

Azure Search | Total ordering of index updates

I've read through this excellent feedback on Azure Search. However, I have to be a bit more explicit in questioning one the answers to question #1 from that list... ...When you index data, it is not available for querying immediately. ...Currently…
Jmoney38
  • 3,096
  • 2
  • 25
  • 26
2
votes
2 answers

Mongodb eventual consistency on replica-sets when writing on two documents

We have a single client that serially writes on two documents (with {w:1}). For example, the original documents may be: {_id: "a", value: 0}, {_id: "b", value: 0} and the client updates document "a" to {_id: "a", value: 1} and then, after the update…
Oren
  • 2,767
  • 3
  • 25
  • 37
2
votes
1 answer

Cassandra vs HBase Consistency Model

How is Cassandra's eventual consistency model different from HBase? It seems Facebook moved from Cassandra to HBase because consistency issues. Which of these NoSQL DBs are ideal for scale and performance with consistency as near as possible to…
vmr
  • 1,895
  • 13
  • 24
2
votes
1 answer

How to set a consistency level to something other than one, two, three for reads and write in Cassandra?

Say I want my replication factor N=10 and I want my R=4 and W=7 such that R + W > N. How can I configure this in cassandra? I know what quorum does but thats not what I am looking for.
user1870400
  • 6,028
  • 13
  • 54
  • 115
2
votes
1 answer

MongoDB - cross data center primary election DRP / Geographically Distributed Replica Sets

Working with mongo distributed over 3 data center for this example the data center names are A,B,C when every thing is going well all user traffic is pointed to A so the mongo primary is on A, the mongo setup is : 3 servers in A (with high…
2
votes
1 answer

Replication with Sequential and Causal Consistency

There are two processes access the shared variables x,y, and z. Each process accesses a different replica of the store used to hold these variables. value of x,y and z is 0 initially. Process 1: x = 1; if (y == 0) z++; And Process 2: y = 1; if (x…
2
votes
3 answers

Google App Engine / NDB - Strongly Consistent Read of Entity List after Put

Using Google App Engine's NDB datastore, how do I ensure a strongly consistent read of a list of entities after creating a new entity? The example use case is that I have entities of the Employee kind. Create a new employee entity Immediately load…
2
votes
0 answers

Is there a way to wait/block until S3 replicates update?

So there is an object in S3 at some location. My code updates S3 object. But I need to make sure that it is properly replicated before proceeding. Is there a way to wait/block until this change replicated to everywhere?
Bohdan
  • 16,531
  • 16
  • 74
  • 68
2
votes
1 answer

How to Prevent Duplicate Values in Google App Engine / an Eventually Consistent Datastore During Authentication

We have an authentication system which uses Google App Engine as the backend. The underlying languages and frameworks consist of Java, JDO, Google Authentication & Google App Engine. We have a User Entity. A User Entity is User Meta-data saved from…
David Buhler
  • 25
  • 1
  • 4
2
votes
1 answer

How to handle long running process / saga use cases crossing bounded contexts

I'm currently working on this use case : a budget is assigned to an organization unit Mike orders a good using the budget Jane gives its OK to this order, validate it. This actions triggers theses consequences : check budget balance to see if we…
2
votes
1 answer

consistency level tuning in cassandra

Imagine a E-commerce application: Let's say I have three Node cluster N1, N2, N3. and my consistency level (CL) is weak: That is Read CL = N/2+1 = 2 (in this case), Write CL = Any (alteast 1) I have a product table such as This is the initial data…
brain storm
  • 30,124
  • 69
  • 225
  • 393
2
votes
1 answer

When can Google Appengine datastore return stale data?

Is there a difference in the results I can expect from this code: query = MyModel.all(keys_only=True).filter('myFlag', True) keys = list(query) models = db.get(keys) versus this code: query = MyModel.all().filter('myFlag', True) models =…
2
votes
1 answer

Understanding Eventual Consistency in Cassandra from theory

I am just on the way writing my bachelor thesis. So therefore I am concerned with Eventually Consistency in theory and how Cassandra applies this theory. To understand my problem, consider the following definitions of consistency (as far as…
Abu Abuu
  • 25
  • 3