知识卡片

普通读书笔记卡 · 2313.e.5.f.10.b.1.b.3.b

分片粒度限制负载分散

理解等级:高级

地域与类别适合保持查询局部性,但若只把这两个字段组合成一个哈希,同一地域同一类别全部落到同一位置。原书示例未包含商品维度,增添虚拟节点也不能把一个热键自动拆开;局部性与分散度需共同设计。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Data Storage Strategies · 查看原书依据

      Horizontal partitioning in our example, we can implement horizontal partitioning (sharding) based on product categories and geographical regions. This approach aligns with how customers would typically interact with the platform.

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第09章《Data Storage Strategies》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch09.xhtml) - 结论依据:原文给出本卡对应定义或示例;地域与类别适合保持查询局部性,但若只把这两个字段组合成一个哈希,同一地域同一类别全部落到同一位置。 对原文省略和过度承诺的限定是本卡显式纠正,不能反过来当作原书已证明。 - 原始内容:Horizontal partitioning in our example, we can implement horizontal partitioning (sharding) based on product categories and geographical regions. This approach aligns with how customers would typically interact with the platform.