← 返回刚才阅读的位置

知识卡片

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

分区扩展减少跨区通信

理解等级:高级

按客户等维度把工作分给不同节点,只有跨区通信少时才有显著收益。分区还必须处理节点失败后的状态恢复与重新分配,不能只做一次哈希路由。若数据访问跨多个分区,合并查询和事务协调会重新引入成本,扩展效果取决于业务访问的局部性。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      With this second tactic, we can break the problem into N partitions and assign each partition to different nodes. For example, a bank may separate customers into partitions and route traffic for different customers into the corresponding partition. The challenge is to partition the system such that the communication between partitions is minimal. Furthermore, when a node fails, we need to recover part of the problem (e.g., customers in the bank case) and assign them to a new node.

    参考来源

    - 位置:《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 second tactic, we can break the problem into N partitions and assign each partition to different nodes. For example, a bank may separate customers into partitions and route traffic for different customers into the corresponding partition. The challenge is to partition the system such that the communication between partitions is minimal. Furthermore, when a node fails, we need to recover part of the problem (e.g., customers in the bank case) and assign them to a new node.