Active Replication
⬅️ Example: Primary backup replication
This is active replication because the entire operation has been repeated on every replica where its effect is needed.
Use active replication when the updated state might be large.
Passive Replication
➡️ Example: Primary backup replication
This is passive replication because the operation is executed once on the primary node, and then the resulting state is sent to the backups.
Use passive replication when an operation might be expensive to do on each replica.
RAFT’s log replication is Active, because ****every server in RAFT is replicated state machine, commands are replicated in the same order in every machine.
<aside> 🤔 Eventual consistency is a consistency model used in distributed computing to achieve high availability that informally guarantees that, if no new updates are made to a given data item, eventually all accesses to that item (at all replicas) will return the last updated value.
</aside>
Eventual consistency
Eventual consistency is used in Amazon’s Dynamo
Network partitioning happens due to many reasons: Link is down, Router is down, Network is slow etc.
P.S: есть еще такие каракули от Шынназара с онлайн-лекции
The CAP theorem explains this dilemma.