知识卡片
网格统一动态服务发现
动态环境里服务实例地址经常变化,硬编码地址会迫使调用方跟着重新部署。网格可把稳定服务名映射到当前实例位置,并按环境配置路由,让调用方无需为位置变化改代码。服务发现仍依赖可靠的注册信息及配置治理。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Service meshes can handle this dynamic lookup of service name to location, externally to the service and also transparently without the need for code modification, redeployments, or restarts. Another benefit of a service mesh is that it can normalize naming across environments using “environment awareness” in combination with configuration stored external to the application.
参考来源
- 位置:《Mastering API Architecture》第4章《Service Mesh: Service-to-Service Traffic Management》之《Fine-grained Control of Routing, Reliability, and Traffic Management》(源文件:_epub-src/OEBPS/ch04.xhtml)
- 结论依据:原文指出云中临时实例使 IP 变化频繁,网格可在服务外透明地把名称查到位置,避免改代码、重部署或重启。
- 原始内容:Service meshes can handle this dynamic lookup of service name to location, externally to the service and also transparently without the need for code modification, redeployments, or restarts. Another benefit of a service mesh is that it can normalize naming across environments using “environment awareness” in combination with configuration stored external to the application.