Notes
Consistency is a spectrum with weak to strong levels.
GFS/Eventual consistency is an example of weak consistency.
Linearizability is an example of strong consistency.
Consistency can be defined as the following properties:
- Completion to Invocation(C2I)
- Globally
- Locally
- Sequential ordering
If all of these properties are satisfied then the system is linearizable. If only local C2I and sequential ordering is guaranteed then the system is sequential consistency(second strongest consistency model). Sequential consistency is the one being used in x86 CPUs’ memory model.