知识卡片
提交等待约束外部顺序
TrueTime 给出当前物理时间的可能区间。Spanner 选定提交时间戳后,要等到该时间确定已过去才向外宣布提交。这样,看到第一笔提交后才开始的第二笔事务,序列化时间戳必然排在第一笔之后。误差区间越宽,需要等待的时间可能越长。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 13. Distributed Transactions Spanner 的三种职责 · 查看原书依据
To achieve consistency and impose transaction order, Spanner uses TrueTime: a high-precision wall-clock API that also exposes an uncertainty bound, allowing local operations to introduce artificial slowdowns to wait for the uncertainty bound to pass.
参考来源
- 位置:《Database Internals》Chapter 13. Distributed Transactions(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch13.html#spanner,段 85)
- 结论依据:原文将时钟不确定性上界、等待和跨分片外部一致性的实时顺序联系起来。
- 原始内容:To achieve consistency and impose transaction order, Spanner uses TrueTime: a high-precision wall-clock API that also exposes an uncertainty bound, allowing local operations to introduce artificial slowdowns to wait for the uncertainty bound to pass.