Answer the question
In order to leave comments, you need to log in
Replication. Do I understand correctly?
In highload solutions, such a thing is often used: we write to master SQL (to which we only write) data from which is replicated to one or more slave SQL (from which we only read).
SQL (I use Postgresql) guarantees ACID where the letter "C" means Consistency - Consistency. Imagine the situation: there are servers "A" (master), "B" (slave) and "C" (slave). Two keys "X" and "Y" are atomically entered into the server "A" in the transaction. Further, these keys from server "A" should be replicated to servers "B" and "C". And they will be replicated atomically, both.
Suppose you are reading data: randomly select server "B" and read the key "X", randomly select server "C" and read the key "Y".
Question: is it possible that the keys "X" and "Y" are already replicated to the server "B", but not yet replicated to the server "C"? With asynchronous replication? With synchronous replication? After all, these are different devices and such inconsistency, even for a very short time, should theoretically be possible. Is consistency guaranteed in a system of multiple replicated servers?
Answer the question
In order to leave comments, you need to log in
guarantees ACID where the letter "C" stands for Consistency - Consistency.
Question: is it possible that the keys "X" and "Y" are already replicated to the server "B", but not yet replicated to the server "C"? With asynchronous replication? With synchronous replication?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question