知识卡片

普通读书笔记卡 · 4378.a.5

共享服务把风险移到运行时

理解等级:高级

共享服务把公共能力变为独立部署、经组合调用的服务,适合多语言环境和频繁变化逻辑。升级一处即可让所有使用者看到变化,却也让缺陷在运行时波及它们;端点版本只能缓解,仍需治理调用者与多协议兼容。远程调用增加延迟、联合扩展和可用性依赖,而共享库把代码随服务编译,不额外引入这些远程依赖。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 复用模式 · 查看原书依据

      The bottom line is that with the shared service technique, changes to a shared service are generally runtime in nature, and therefore carry much more risk than with shared libraries. While versioning can help reduce this risk, it’s much more complex to apply and manage than that of a shared library.

    参考来源

    - 位置:《Software Architecture: The Hard Parts》第08章《复用模式》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch08.xhtml) - 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。 - 原始内容:The bottom line is that with the shared service technique, changes to a shared service are generally runtime in nature, and therefore carry much more risk than with shared libraries. While versioning can help reduce this risk, it’s much more complex to apply and manage than that of a shared library.