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

MySQL/MariaDB read preference from slave with max staleness

I am using Mysql/MariaDB with Innodb storage engine version 10.x. I want to setup a cluster with master-slave configuration. There is an option to read data from slave using --innodb-read-only or --read-only. However in addition to the above,…
0
votes
0 answers

How to monitor for client side file changes with javascript and FileAPI

BLUF: Is there a way to monitor for changes to a file within a shared directory on the client side using javascript and the FileAPI? Background I've written a simple p2p file sharing program with node.js - clients select a folder of files to…
0
votes
1 answer

Replication Properties of Riak nodes

With a partitioned database with N nodes. Assume W is the number of nodes in which the number of nodes required to be locked to be written and R is the number of nodes required to be locked in order to read them. In which cases, it is recommended to…
0
votes
0 answers

BigQuery distributed transactions

I'm trying to architect a microservice based system utilizing BigQuery as one of services. We need to preserve eventual consistency between BigQuery and other microservices, so that changes to BigQuery (data uploads, table creates, etc) were…
0
votes
1 answer

Avoid making the same assertions on data in SQL Language as you do in your domain

Imagine that The class Purchasable looked like this in scala case class Purchasable(product: ProductData,store: StoreData,seller: UserData){ require { //seller is active && //seller has defined personal info && //seller has defined…
shayan
  • 1,211
  • 9
  • 12
0
votes
1 answer

S3 Eventual Consistency: file parts are lost on PUT with overwrite

I am using Amazon S3 to store a big amount of text files. My software is in Java, and I am using the official S3 SDK. Apart from create/delete/retrieve/, i often need to append new content to files. S3 does not support append, so I have implemented…
Andrea Rossi
  • 981
  • 1
  • 10
  • 23
0
votes
2 answers

Cosmos DB eventual consistency maximum upper bound

We're thinking about using Cosmos DB but can't find any information on what the maximum upper bound would be for eventual consistency, if any. Can someone provide insight on this please?
0
votes
0 answers

Amazon S3 consistency for versioning buckets

How does versioning work with Amazon S3 consistency? In my use case I want to upload multiple versions to the same bucket (with versioning enabled). Many writes may occur at the same time. Will I get read-after-write-consistency, eventual…
Bartosz Bilicki
  • 12,599
  • 13
  • 71
  • 113
0
votes
1 answer

What kind of consistency guarantee does a multi-master-master innodb cluster guarantee?

Assume I have a multi-master innodb cluster (with just 2 data nodes) where clients make requests through mysql routers. Suppose a specific row on some table in a database is updated on both the nodes by two clients almost at the same time. Now both…
Nipun Talukdar
  • 4,975
  • 6
  • 30
  • 42
0
votes
1 answer

Getting list of modified files

I am trying to use google drive API to get a list of files which were changed inside a folder. When using the query "modifiedTime > some_ts" it sometimes takes several minutes until I see the changes in the data: meaning that on the first query I…
Dror
  • 1
  • 4
0
votes
1 answer

Akka cluster sharding: do shard entities share a journal?

I am following an akka tutorial demonstrating cluster sharding. In the cluster sharding example, the author starts up a shared journal and makes the following comment: // Start the shared journal one one node (don't crash this SPOF) // This will not…
0
votes
0 answers

Collaboration in web application - concurrency testing and assert the (eventual) consistency?

Is there a testing framework or solution to test and assert collaboration on shared data in a webapplication? The client-side mainly focus on changing the structure of a large collection of ordered objects. Basic operations like insert, delete and…
0
votes
1 answer

how to have elasticsearch search (API) deal with a time for which it would be consistent with

Elastic search API is eventually consistent, in favour of query response times. Eventual consistency is not an issue as long as one can be sure of the date it is consistent with. Can any elasticsearch search (API) result return the time for which…
user1767316
  • 3,276
  • 3
  • 37
  • 46
0
votes
1 answer

Enforce strict consistency spanning multiple aggregates

Consider the following business requirements: We have players which can play games. A player can play only one game at a time. A game needs two players. The system will contain millions of players, and games take about two minutes. Concurrency…
Luca Nate Mahler
  • 1,292
  • 2
  • 13
  • 28
0
votes
2 answers

Titan strange consistency issues - Multiple edges with same edge id

We are using Titan 1.0.0 with Cassandra version 3.9.0-1, from datastax-ddc on CentOs-7 system. We are seeing some strange issues, like: Multiple edges with the same edge id, few properties on these edge do differ in values. g.V().has('msid',…
Pankaj Yadav
  • 139
  • 1
  • 10