Questions tagged [data-consistency]

126 questions
1
vote
1 answer

transaction rollback for multiple databases

I was asked a question recently during an interview. Question is: I have two different databases and I need to update tables on both databases. We want data consistency. I updated table in first database, then while updating second database I…
user1474111
  • 1,356
  • 3
  • 23
  • 47
1
vote
1 answer

How to check whether a certain day_id is contained inside a given time interval day_from to day_to?

I am a rather inexperienced SQL developer but I am trying to do my best to have a consistent database. The problem I seek to resolve could be done in an upper layer of my system but I am aware that it's best to handle things like that where they…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
1
vote
1 answer

Data Consistency on very close events in Firebase

I am building an iOS game. Each game room is constructed from two users. After two users get matched, I'm displaying a "waiting for respond" timer on both devices: they need to click am "I'm Ready" button within 8 second or both of them will get…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
1
vote
2 answers

xSpanner: how leader sync data to replicas?

In Spanner: Google’s Globally-Distributed Database, section 2.1, we read: To support replication, each spanserver implements a single Paxos state machine on top of each tablet. (An early Spanner incarnation supported multiple Paxos state machines…
1
vote
1 answer

Impacts of Shutting down the Cassandra Seed Provider

I have a cluster of 3 Cassandra nodes: Cassandra_1, Cassandra_2, Cassandra_3. In the cluster, Cassandra_1 is chosen as the seed provider. All Cassandra instances are in the same data center. Read/Write consistency level is set to ONE and the…
Bilal
  • 111
  • 2
  • 9
1
vote
1 answer

Timely accurate continuous data algorithm

I want to create an algorithm but not sure how to start. This algorithm will actually be a method that accepts an array of N objects with some of the attributes, createdAt, value. I will sort the array from older to new (createdAt) and then I have…
George Taskos
  • 8,324
  • 18
  • 82
  • 147
1
vote
0 answers

matplotlib plot whole data

I've been using matplotlib to plot data in the form of lines. I want all of the data to be visible at any time, but mpl is giving me strange behaviour while fine zooming: First image: https://i.stack.imgur.com/nccvi.png Second image:…
bmscicho
  • 139
  • 2
  • 11
1
vote
1 answer

Data dependency and consistency

I'm developing a quite large (for me) ruby script for engineering calculations. The script creates a few objects that are interconnected in a hierarchical fashion. For example one object (Inp) contains the input parameters for a set of simulations.…
Rojj
  • 1,170
  • 1
  • 12
  • 32
1
vote
1 answer

How would you explain data (in)consistency to the audience who have no background on distributed storage systems?

Data consistency is an important issue in distributed storage systems, such as Amazon DynamoDB, Cassandra, Riak, Windows Azure and so on. It comes with the replication technique used to provide high performance, fault-tolerance, and scalability.…
hengxin
  • 1,867
  • 2
  • 21
  • 42
1
vote
2 answers

Consistency for read from distributed databases

I have a set of databases, distributed across multiple locations in the network and for ex. one client that needs to store some data in that databases. I need to make sure my data will always be stored. I can't organize a replica set with…
1
vote
1 answer

MySQL - sql server: consistency check

I'm trying to check the results of a data load between two databases. Unfortunately, I only have access to one database (MySQL) directly, the company managing MSSQL can expose it to us via an API. What I would like to do is check the consistency of…
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66
0
votes
0 answers

Guaranteeing consistency while accessing files on a web server

I'm in the process of building a simple update server for an application. The parts of the application being updated are configuration files; the most up-to-date copies of these files exist on the update server and these files can be edited by the…
Dylan Knowles
  • 2,726
  • 1
  • 26
  • 52
0
votes
0 answers

How to compute MD5 on the http server while providing file download

The server is built with Java language -netty server, using Http to provide services The server provides a file download service over Http. However, MD5 has not been computed for these files before At present, when we want to download the…
张SSN
  • 1
  • 1
0
votes
1 answer

How to check data integrity/consistency in asynchronous (event-driven) system

Let's say we have an asynchronous event-driven system where service A owns some data, publishes events and service B is consuming them and is storing the copy of the data in its local DB. I'd like to be able to check if the local copy in B is…
Lukas
  • 13,606
  • 9
  • 31
  • 40
0
votes
0 answers

What data consistency semantics does RxJS provide?

Does RxJS ensure any particular model of chronological data consistency, either in terms of logical time or wall time? As one example, if I'm consuming values from Observable A and Observable B, created from A using an operator, can I simultaneously…
aas
  • 177
  • 8
1 2 3
8 9