Skip to content

Instantly share code, notes, and snippets.

@ideawu
Created February 26, 2021 05:46
Show Gist options
  • Save ideawu/5e112caa945759ff55ae436c4afe83f6 to your computer and use it in GitHub Desktop.
Save ideawu/5e112caa945759ff55ae436c4afe83f6 to your computer and use it in GitHub Desktop.
一致性

一致性就是唯一预期. 给定输入条件, 结果是可以确定的. 无论重复多少次, 无论观察多少次, 结果都是唯一的.

@ideawu
Copy link
Author

ideawu commented Mar 19, 2021

强一致性保证, 在写之后去读, 一定读到不早于该次写操作的值.

最终一致性在理论上保证,假如实体未进行任何新的更新,则对实体执行的所有读取操作将最终返回最后更新的值。- google cloud datastore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment