知识卡片

普通读书笔记卡 · 3335.d

服务契约降低替换成本

理解等级:中级

若消费者只依赖稳定服务契约,缓存实现可从嵌入式迁往远程集群而不要求所有调用方重新部署。共享库迁移则要更新众多仓库和部署,说明边界影响迁移成本。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Principles of Software Architecture Modernization》第9章《Code Migrations》(源文件:`_epub-src/OPS/ch09.xhtml`,归一化正文 [16951:21093)) - 结论依据:原文对比 Ehcache 服务接口与共享 JAR 两种迁移场景。 - 原始内容:It is possible to make this code migration using a backward compatibility approach since we know the contract. Even with the contract being coupled with an Ehcache interface, it would be possible to implement this interface and preserve the contract, so all REST calls would not break. However, the real implementation (v2) would not be using an embedded Ehcache in Java but Redis instead.