by margorczynski · 2y ago · 0 comments
1. Get write request to a node
2. Node sends lock on that updated data to rest of nodes
3. After they send back OK the write happens
4. Propagate to rest of nodes
5. After receiving OK on the update from all of the nodes send notification to nodes to lift the lock
So if a partition happens the system fails if it is CA while with e.g. CA it cannot guarantee strong consistency without resolving the split brain (killing of one of the partitions based on e.g. quorum)?
If you need stronger primitives than atomic read/write (e.g. CAS), then ABD is insufficient and you need consensus in the asynchronous model (although synchronized clocks can allow even CAS to be implemented with ABD + leader election with leases[2]).
[0] https://dl.acm.org/doi/pdf/10.1145/200836.200869
[1] https://www.cl.cam.ac.uk/teaching/2223/ConcDisSys/dist-sys-n...
Invariant confluence, determines whether an application requires coordination for correct execution.
You can tailor the invariants to your requirements making invariant confluence a much better tool than CAP