知识卡片

普通读书笔记卡 · 10291.a · 生成模型:未记录

分片决定请求的去向

理解等级:中级

分片把逻辑数据划成由不同副本组管理的范围,读取和写入按路由键发给责任组。范围大小既要看数据量,也要看访问负载。切换归属需要先搬运并校验数据,再更新路由元数据,否则请求可能先到新位置而数据仍在旧位置。

这张卡片看不懂?

已有反馈 · 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#database_partitioning,段 97) - 结论依据:原文用路由键定位副本组,说明热点切分、数据密度以及迁移和更新元数据的顺序。 - 原始内容:The most straightforward way to partition data is by splitting it into ranges and allowing replica sets to manage only specific ranges (partitions). When executing queries, clients (or query coordinators) have to route requests based on the routing key to the correct replica set for both reads and