知识卡片
契约覆盖架构连接
契约是架构各部分传递信息或依赖所采用的格式,不限于HTTP接口或远程调用;框架的传递依赖、缓存和内部集成也在范围内。它横切通信、一致性和协调,使看似独立的服务因格式变化而被迫共同修改。先确定需要传递哪些语义、容许怎样的变化,再选择gRPC等实现,才能避免把性能偏好误当成架构决策。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
- · 第13章 契约
原书出处 · 1 处
- 契约 · 查看原书依据
This definition of contract encompasses all techniques used to “wire together” parts of a system, including transitive dependencies for frameworks and libraries, internal and external integration points, caches, and any other communication among parts.
参考来源
- 位置:《Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)》第13章《Chapter 13. Contracts》(来源项目: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/ch13.xhtml)
- 结论依据:原文的定义、示例或失败路径支持以下归纳:契约是架构各部分传递信息或依赖所采用的格式,不限于HTTP接口或远程调用;框架的传递依赖、缓存和内部集成也在范围内。 其他条件结合本章同小节说明;不将模式目标当成已有运行保证。
- 原始内容:This definition of contract encompasses all techniques used to “wire together” parts of a system, including transitive dependencies for frameworks and libraries, internal and external integration points, caches, and any other communication among parts.