知识卡片
分片大使隐藏路由
数据分片把不同数据交给不同机器。客户端大使接收单一后端接口的请求,按键路由到目标分片并返回结果,使旧应用无需内置分片拓扑。也可由服务端统一代理:前者增加客户端部署组件,后者增加服务端运维职责,选择应跟随团队边界与改码能力。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 4. Ambassadors · 查看原书依据
The alternative is to integrate a single-node ambassador on the client side to route traffic to the appropriate shard. This makes deploying the client somewhat more complicated but simplifies the deployment of the sharded service. As is always the case with trade-offs, it is up to the particulars
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第04章《Chapter 4. Ambassadors》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch04.html)
- 结论依据:原文对比客户端与服务端路由的部署复杂度和职责。
- 原始内容:The alternative is to integrate a single-node ambassador on the client side to route traffic to the appropriate shard. This makes deploying the client somewhat more complicated but simplifies the deployment of the sharded service. As is always the case with trade-offs, it is up to the particulars