知识卡片

普通读书笔记卡 · 10294.a.4.a.2.d.1.a.1.d · 生成模型:未记录

提交等待约束外部顺序

理解等级:高级

TrueTime 给出当前物理时间的可能区间。Spanner 选定提交时间戳后,要等到该时间确定已过去才向外宣布提交。这样,看到第一笔提交后才开始的第二笔事务,序列化时间戳必然排在第一笔之后。误差区间越宽,需要等待的时间可能越长。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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.