此卡片不在当前主题的阅读序列中,可返回主题继续阅读。
知识卡片
服务发现应对实例变化
服务发现提供实例位置,负载均衡在可用实例之间分配请求。实例会动态增加、退出和失效,因此硬编码地址难以维护;这两项能力分别解决“在哪里”和“发给谁”,需要配合使用。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Monoliths and Microservices · 查看原书依据
As services scale and instances change dynamically, services need mechanisms for service discovery and load balancing to route requests to the correct instances efficiently. Service discovery allows services to locate and communicate with each other without hard-coding network addresses, using approaches like centralized service registries or distributed key-value stores.
参考来源
- 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第02章《Monoliths and Microservices》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch02.xhtml)
- 结论依据:原文以服务职责、依赖或运行情境展开本卡主题;本卡保留其作用条件与代价,不把局部优势推广为无条件保证。
- 原始内容:As services scale and instances change dynamically, services need mechanisms for service discovery and load balancing to route requests to the correct instances efficiently. Service discovery allows services to locate and communicate with each other without hard-coding network addresses, using approaches like centralized service registries or distributed key-value stores.