知识卡片
服务身份与实例地址分离
短命服务实例会频繁更换位置,调用方若绑定固定实例地址就随部署变化失效。服务发现使稳定身份与动态实例集合分开,降低位置耦合。原书只概述这一需求及服务网格候选,没有展开实现;不能据此断言所有DNS方案都无法服务动态系统。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Loose Coupling · 查看原书依据
This process of locating services on a network is called service discovery. Traditionally, services lived at relatively fixed, well-known network locations that could be discovered by referencing some centralized registry. Initially this took the form of manually-maintained hosts.txt files, but as networks scaled up so did the adoption of DNS and URLs. Traditional DNS works
参考来源
- 位置:《Cloud Native Go》第08章《Loose Coupling》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch08.xhtml)
- 结论依据:短命服务实例会频繁更换位置,调用方若绑定固定实例地址就随部署变化失效。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。
- 原始内容:This process of locating services on a network is called service discovery. Traditionally, services lived at relatively fixed, well-known network locations that could be discovered by referencing some centralized registry. Initially this took the form of manually-maintained hosts.txt files, but as networks scaled up so did the adoption of DNS and URLs. Traditional DNS works