← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1754.x.1.c

跨区转账暴露分区例外

理解等级:高级

按用户分区可让多数工作独立,但两个用户在不同区时,一笔转账仍会跨区。书中用收集交易、稍后异步对齐示意如何调整一致性时间窗口,没有给出银行完整记账、余额和故障协议。可迁移的结论是分区不能消灭跨实体依赖,应明确例外流程及容许延迟;不能据此声称银行转账都只需日终处理。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 高可用与扩展 · 查看原书依据

      With this architecture, we partition the work by users. Each user goes to only one partition. However, this approach can go wrong with transactions that involve two users who are placed in two partitions. Banks often update the balance at the end of the day, so we collect transactions and asynchronously reconcile them at that time.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第09章《高可用与扩展》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch09.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:With this architecture, we partition the work by users. Each user goes to only one partition. However, this approach can go wrong with transactions that involve two users who are placed in two partitions. Banks often update the balance at the end of the day, so we collect transactions and asynchronously reconcile them at that time.