nanne007 / notes

see issue lists for further discusses
https://github.com/lerencao/notes/issues
9 stars 2 forks source link

linearizability versus serializability #93

Closed nanne007 closed 5 years ago

nanne007 commented 5 years ago

http://www.bailis.org/blog/linearizability-versus-serializability/

最近终于搞懂了这个玩意。之前先入为主了。

Combining serializability and linearizability yields strict serializability: transaction behavior is equivalent to some serial execution, and the serial order corresponds to real time. For example, say I begin and commit transaction T1, which writes to item x, and you later begin and commit transaction T2, which reads from x. A database providing strict serializability for these transactions will place T1 before T2 in the serial ordering, and T2 will read T1’s write. A database providing serializability (but not strict serializability) could order T2 before T1.

nanne007 commented 5 years ago

一致性模型的定义: https://jepsen.io/consistency

nanne007 commented 5 years ago

another post: https://aphyr.com/posts/313-strong-consistency-models

nanne007 commented 5 years ago

SSI 实现:

nanne007 commented 5 years ago

write skew:

https://www.cockroachlabs.com/blog/what-write-skew-looks-like/

nanne007 commented 5 years ago

crdb ssi 实现要点: