125 questions
0
votes
0
answers
36
views
Synchronization of an unbounded crossbeam channel
If after creating a crossbeam (https://docs.rs/crossbeam/latest/crossbeam/channel/index.html) unbounded channel I clone the sender multiple times and pass these to multiple threads and the single ...
0
votes
1
answer
75
views
Handling inconsistency in a highly normalized DB with long load times
I have a highly normalized database with many foreign keys, and my application performs calculations on this data.
First my application loads numerous entities of respective customer (let’s say by ...
2
votes
2
answers
102
views
How to avoid thread interference while updating database in multithreading
I have a java class ,which has two methods .These methods will be called one after the other. These methods are making rest calls to different services. After getting data from rest call ,i'm updating ...
0
votes
1
answer
572
views
Spring Data: How to maintain cache consistency in transactional methods?
Let's assume we have a standard Spring Boot application with JPA. We have repositories, services and REST controllers. On the service layer, we have this:
@Service
public class UserService {
@...
0
votes
1
answer
120
views
Data consistency in DAOs
Looking up "dao data consistency" or "data access layer data consistency" on Google returns nothing useful
Suppose I have to write DAOs that use a SQL db as datasource and let's ...
0
votes
1
answer
392
views
Flutter List after storing all data in a for-loop, when out of loop replace all stored records with the last record. Why's that?
I want to pass data from json to a list. I load the list with data into a for-loop, and it works as expected, loading 6 records into my list. But when I verify when for-loop is done, my list keep only ...
0
votes
2
answers
420
views
How to share data between microservices without sync RPC (use topics as changelogs) and deal with consistency?
I learned about using Kafka's topics as a changelog to avoid doing synchronous RPC, but I don't understand how we deal with consistency as topics are not persistent (retention policy).
i.e, I run an ...
0
votes
0
answers
124
views
Atomic Deletion in Mongodb
I have the following collections in my MongoDB
Task:
{
_id: string;
name: string;
}
Employee:
{
_id:string;
name: string;
tasks: string[];// contains the ids of the assigned tasks.
}
I want to ...
0
votes
1
answer
308
views
Cassandra atomicity with delete partition key which belong to different tables
I have a use case where i need to perform delete from three tables in cassandra . The partitioning key is same for all the tables example :-
Db_name/table1/1111
Db_name/table2/1111
Db_name/table3/1111
...
2
votes
2
answers
26
views
What should be the flow when performing related async tasks?
Lets say i have a method updateRecord(), and this method performs some async requests inside of it, and some of this requests are more important than others since they impact hardware, and some are, ...
5
votes
1
answer
477
views
How to achieve data consistency in a newly added microservice?
For example, we have microservices with event sourcing.
To achieve data consistency we use the following approach:
A microservice generates an event
The event is stored in an event store
The event is ...
3
votes
1
answer
2k
views
What is the accurate way of removing outliers from a set of data and make the data consistent using javascript?
Let's say we have the following set of data.
2.33, 2.19, 4.7, 2.69, 2.8, 2.12, 3.01, 2.5, 1.98, 2.34
How do I pick the consistent data from the above sample by eliminating the outliers using ...
0
votes
0
answers
41
views
How do i satisfy business requirements across microservices with immediate consistenc?
Let’s assume I’m in the context of an admin panel for a webshop. I have a list of orders. Those orders are payed for and are ready to ship. The (admin) user would like to start making shipments based ...
2
votes
1
answer
880
views
If IEnumerable data source is changed, it changes the results
Given the following code:
using System.Linq;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
//Init data
char[] chars = new ...
0
votes
1
answer
217
views
message consistency test scenario in Kafka
i'm building a POC that contains a Kafka cluster deployed on Kubernetes and three spring boot apps that read from kafka and write to jms and vice versa.
I want to know how data integrity and ...
0
votes
0
answers
98
views
how to maintain hibernate data consistency between if the two microservices sharing same table of database
**I'm new to microservices I have a service A , service B Service C are using same database to access the User details which is in Service C. can we have the the same hibernate entity to get the info ...
2
votes
1
answer
145
views
Inconsistent Elassandra cluster state after node restart - less data on one node
I have migrated my existing data in 4 nodes Cassandra (with RF=3) to Elassandra and after putting my mappings whole data got indexed into Elassandra. After the completion of indexing, all nodes show a ...
0
votes
1
answer
142
views
why this code works and eloquent create the subdocument if it is not exists?
suppose I have a collection with name ParrentObj and a corresponding Eloquent class named ParrentObj:
[//ParentObj eloquent objects
{
"_id":ObjectId("5e11ae242cb48f79afcd4b07"),
"Code":"a"
...
0
votes
2
answers
1k
views
change specific value in mdf-object (python, asammdf)
I would like to change some values in an mdf file (specifically, I would like to check for consistency, since the measurement instrument for some reason writes 10**10 when no value could be found). I ...
2
votes
1
answer
316
views
using delta lake tables as lookups on another changing delta table
I have a scenario where I'm using one delta table as a lookup table for another delta table. if during the lookup, a lookup value gets added to the underlying table during the operation, will it been ...
0
votes
1
answer
78
views
distributed crawler and consistency
The case is that we have multiple servers (40+) to scrape one same URL at the same time (to make sure we have smallest legacy) and save the data into the database (MySQL).
and the problem now is that:...
1
vote
3
answers
1k
views
Data consistency across multiple microservices, which duplicate data
I am currently trying to get into microservices architecture, and I came across Data consistency issue. I've read, that duplicating data between several microservices considered a good idea, because ...
2
votes
2
answers
265
views
Aerospike cluster behavior in different consistency mode?
I want to understand the behavior of aerospike in different consistancy mode.
Consider a aerospike cluster running with 3 nodes and replication factor 3.
AP modes is simple and it says
Aerospike ...
1
vote
1
answer
442
views
Read Your Own Writes Consistency Before MongoDB 3.6
I was reading the documentation for mongdb, and I'm trying to understand what is necessary for "read your own writes" consistency before Mongo 3.6's causal consistency sessions were introduced.
...
5
votes
1
answer
437
views
Does the SQL Server automatic index tuning feature drop unique indexes?
I was wondering if the SQL Server 2017 (or SQL Azure) automatic index tuning feature would drop any unique index on a table, since that would be very bad for data consistency.