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
3
votes
2 answers

Do Cursors deal with Eventual Consistency?

In the App Engine Documentation I found an interesting strategy for keeping up to date with changes in the datastore by using Cursors: An interesting application of cursors is to monitor entities for unseen changes. If the app sets a timestamp…
yydl
  • 24,284
  • 16
  • 65
  • 104
3
votes
2 answers

What are the common practice to handle Cassandra write failure?

In the doc [1], it was said that if using a write consistency level of QUORUM with a replication factor of 3, Cassandra will send the write to 2 replicas. If the write fails on one of the replicas but succeeds on the other, Cassandra will report a…
Ryan
  • 10,041
  • 27
  • 91
  • 156
3
votes
1 answer

GAE: How long to wait for eventual consistency?

I have an app where I am creating a large number of entities. I don't want to put them in the same entity group, because I could be creating a lot of them in a short period of time -- say 1 million in 24 hours. At certain points, I want to get all…
3
votes
1 answer

Do aggregates have to be strongly consistent?

Everything I have read on DDD implies that state within aggregates must be strongly consistent. This implies that if one required redundancy, then only strongly-consistent replication can be used (such as 2PC, 3PC or Paxos). Are you allowed to use…
2
votes
1 answer

Distributed database - Eventual Consistency Implications

I've been learning more about eventual consistency and distributed database, and I have a question. In my scenario, I have a distributed database that stores some listings users have posted (for example, a real estate listing site). My understanding…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
2
votes
1 answer

How can I create applications on a database which provide only eventual consistency

Cassandra and many other similar systems provide no transactions support. Instead they provide eventual consistency which means that the writer to the system eventually will be in consistent state. Are there any examples on how can I use to emulate…
Konstantin Solomatov
  • 10,252
  • 8
  • 58
  • 88
2
votes
1 answer

Using cassandra and keep data consistency

As we all know, we have ConsistencyLevel of ReplicationFactor in cassandra. And we just want to leverge it for keeping data consistency. Because it is supposed to keep the price info. So which strategy is better? Write ALL Ensure that the…
Clark Bao
  • 1,743
  • 3
  • 21
  • 39
2
votes
1 answer

Azure CosmosDB Consistency guaranty

Microsoft in their documentation they state for the Consistent prefix consistency the following: In consistent prefix option, updates that are returned contain some prefix of all the updates, with no gaps. Consistent prefix consistency level…
2
votes
2 answers

How can HBase strongly consistent without consensus algorithm like paxos

Many articles refer that HBase is a strongly consistent system because the read/write only goes to the primary region server. But I am thinking a scenario that the consistency can not hold (1) a write failed to be replicated to some HDFS replicas…
del bao
  • 1,084
  • 1
  • 11
  • 20
2
votes
0 answers

Zookeeper: Will get followed by update from a client result in stale data?

For example, zkClient A connects to zkServer X. And zkClient A issues a request to update znode "/a" from 0 to 1. After receiving this request, zkServer X forwards it to the leader. Then the leader broadcasts this update proposal to all the…
2
votes
1 answer

Performance of non-primary-key queries on a fully replicated Cassandra cluster

I have set up a fully-replicated, 3-node Cassandra cluster on a single machine using Docker containers, with the following status: Datacenter: dc_n1 ================= Status Address Load Tokens Owns Host_ID Rack UN 172.18.0.3…
Kiarahmani
  • 47
  • 1
  • 8
2
votes
3 answers

CQRS and eventual consistency

I've been added to an project under development. It's an ASP.Net MVC 5 application using Mediatr and the CQRS pattern(with a read-only database and a write only database - eventually consistent). The application has an admin piece that has a lot of…
Matt M
  • 3,699
  • 5
  • 48
  • 76
2
votes
3 answers

Validation/invariants enforcing in a CQRS app

I've scoured SO and other forums/mailing lists in the search for answers on this topic, and while I know that the answer largely depends on the domain itself, and what is acceptable from an eventual consistency point of view, I still struggle to…
2
votes
0 answers

S3 list consistency model for new objects and keys

Imagine I have an S3 empty bucket BUCKET. I PUT two files into BUCKET with a sub-key, but have no other interaction with it: PUT s3://BUCKET/x/y.dat PUT s3://BUCKET/x/z.dat Now, if I make a LIST call on x, will this exhibit read-after-write…
teabot
  • 15,358
  • 11
  • 64
  • 79
2
votes
1 answer

java.io.FileNotFound exception while writing to apache spark in qubole

I have a code in apache spark 1.6.3 running on qubole which writes data to multiple tables(parquet format) on s3. At the time of writing to tables I keep getting java.io.FileNotFound exception. I am even setting:…