知识卡片

普通读书笔记卡 · 2299.h.1.b.2

发现服务管理动态绑定

理解等级:中级

发现服务保存可查询的地址及版本、价格等属性,组件可静态或实例化时动态注册,不再有效时需注销或由健康检查清理。消费者无需硬编码具体对方,可在启动或运行时按需求选择服务。动态灵活性要求注册注销和元数据维护自动化,过期目录不能被当成可用性保证。

位置独立使服务地址变化尽量不传播给调用者;地址在运行前未知或运行中迁移时,须通过发现更新绑定。

相关:[[中介要说明消除哪种距离]]。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 2 处

    • 可集成性 · 查看原书依据

      The discover tactic works by reducing the dependencies between cooperating services, which should be written without knowledge of each other. This enables flexibility in the binding between services, as well as when that binding occurs.

    • 可修改性 · 查看原书依据

      Location independence refers to the case where two pieces of distributed software interact and the location of one or both of the pieces is not known prior to runtime. Alternatively, the location of these pieces may change during runtime.

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第7章《可集成性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch07.html) - 结论依据:原文的定义、机制或比较支持“发现服务保存可查询的地址及版本、价格等属性,组件可静态或实例化时动态注册,不再有效时需注销或由健康检查清理”;正文保留其条件与取舍。 - 原始内容:The discover tactic works by reducing the dependencies between cooperating services, which should be written without knowledge of each other. This enables flexibility in the binding between services, as well as when that binding occurs.