知识卡片
分片键应匹配业务等价
分片键选择应使可复用同一结果的请求尽量落到一起,又不能错误地把不同语义内容混成同一缓存对象。路径相同但语言不同的页面,要把地区或语言纳入缓存语义;对每个IP单独分组又会降低复用。路由键决定去哪里,缓存键决定结果是否相同,两者不能混淆。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Sharded Services · 查看原书依据
Determining the appropriate key for your sharding function is vital to the optimal design of a sharded system. Determining the correct shard key requires an understanding of the requests that you expect to see. Consistent Hashing Functions Setting up the initial shards for a new service is
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第07章《Chapter 7. Sharded Services》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch07.html)
- 结论依据:原文比较整个请求、路径、IP及国家加路径,展示过细和过粗分组的代价。
- 原始内容:Determining the appropriate key for your sharding function is vital to the optimal design of a sharded system. Determining the correct shard key requires an understanding of the requests that you expect to see. Consistent Hashing Functions Setting up the initial shards for a new service is