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

Does consistency type matter for

If I write a new key/value to dynamodb, will the result differ in case of reading it in "Strong consistency" mode or "Eventual consistency" mode? I mean it is a new key/value which is never going to get updated.
0
votes
1 answer

Are Google Datastore backups internally consistent (wrt transactions)?

Suppose I have 2 entity kinds A and B, and I have a transaction that updates an entity in A and an entity in B (so a transaction across entity kinds). I was wondering whether, when backing up my datastore (through Datastore Administration), the…
0
votes
1 answer

Simple examples of application dealing with eventual-consistency of distributed datastore?

Is anyone aware of some simple examples of application taking into account the 'eventual consistency' caveat of a distributed database like Cassandra ? I am hoping that there are some design-patterns that helps us deal with this. If the example is…
bdutta74
  • 2,798
  • 3
  • 31
  • 54
0
votes
1 answer

How to perform targeted select queries on main DB instance when using Amazon MySQL RDS and Read replica?

I'm considering to use Amazon MySQL RDS with Read Replicas. The only thing disturbing me is Replica Lag and eventual inconsistency. For example, image the case when user modifies his profile (UPDATE will be performed on main DB instance) and then…
Centurion
  • 14,106
  • 31
  • 105
  • 197
0
votes
0 answers

How to use NOLOCK in mysql

I am trying to speed up some mysql (innodb) with the following characteristics. I would like some advice about how to remove locking to improve performance. I have absolutely NO concern about non-repeatable reads or the order of writes. If user A…
0
votes
2 answers

Idempotent client-retryable entry creation in AppEngine given eventually consistent queries, etc

I need to come up with a strategy for handling client-retries on a data-store entry creation: Client sends request to create new entry in database Server performs entry creation and prepares success-reply Some error happens that makes the client…
Markus A.
  • 12,349
  • 8
  • 52
  • 116
0
votes
1 answer

Load Full Collection in RavenDB

At the startup of an application that uses RavenDB, I need to load the full collection of documents of a specific type and loop through them. The number of documents should always be small (< 1000). I can do this via: session.Query(); but…
Phil Sandler
  • 27,544
  • 21
  • 86
  • 147
0
votes
1 answer

GAE Ancestor Query Hack: is this a good practice?

I stumbled on this feature of App Engine's Datastore that you don't actually have to have a persisted root entity to have strongly consistent behavior work with GAE. You can use a computed key to store and load child entities. My question is: Is…
0
votes
0 answers

GAE strong consistency anomolies across multiple instances

I am using GAE SDK 1.8.9 with Java 1.7 (build 45). For the datastore, I am using Datanucleus JDO v2. I have deployed code to production to update a counter for each new "order" request and am having a couple of consistency issues occurring that I…
0
votes
2 answers

REST status code and eventual consistency?

I have a RESTful web service that runs on the Google App Engine, and uses JPA to store entities in the GAE Data Store. New entities are created using a POST request (as the server will generate the entity ID). However, I am uncertain as to the best…
Ben Owen
  • 102
  • 9
0
votes
3 answers

How do I give users imidiate feedback in a CQRS web application

I have a CQRS application with eventual consistency between the event store and the read model. In it I have a list of items and under the list a "Create new" button. When a user successfully creates a new item he is directed back to the list but…
Johan Gov
  • 1,262
  • 1
  • 13
  • 26
0
votes
2 answers

Which approach and database to use in performance-critical solution

I have the following scenario: Around 70 million of equipments send a signal every 3~5 minutes to the server sending its id, status (online or offiline), IP, location (latitude and longitude), parent node and some other information. The other…
Hoffmann
  • 14,369
  • 16
  • 76
  • 91
0
votes
1 answer

App Engine Datastore - consistency and 1 write per sec limitation - who will it work in the following scenarious

I'm trying to wrap my head around eventuality consistency and 1 write per sec principles in GAE datastore. I have a scenario and two questions: #python like pseudo-code class User: user_id = StringProperty last_update_time =…
0
votes
5 answers

CQRS Eventual Consistency Event Dependencies

I'm new to the CQRS and eventual consistency models, so forgive me if this is a stupid question. Given that I'm just getting started, I have a local in memory CommandBus and EventPublisher. My events are persisted to a RavenDB database for replay…
Jeff
  • 35,755
  • 15
  • 108
  • 220
0
votes
1 answer

Mixing eventual consistency systems and legacy ACID systems

Are there any patterns for mixing eventual consistency systems with legacy ACID-systems? I want to store data in some(at least two) legacy systems on the mainframe that need ACID-like transactions. Those mainframe-databases(Let us call them…
1 2 3
18
19