知识卡片
契约语义与网络暴露分层
业务契约包含操作、数据与行为预期;REST、gRPC 等只是向不同消费者暴露它的网络形式。同一服务可能需要多种协议,选择网关、驱动或包装层时须比较额外延迟、复杂度与迁移能力。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Principles of Software Architecture Modernization》第6章《Principles of Proper Services》(源文件:`_epub-src/OPS/ch06.xhtml`,归一化正文 [80097:84272))
- 结论依据:原文指出 SOA 契约超越 Java 对象或 OpenAPI 描述,包括数据、操作与行为,而 exposure 添加网络与更广的通信约束。
- 原始内容:We want to drive our point home through Figure 6.18 and this entire section is that the SOA contract is beyond just a dumb Java object or OpenAPI specification. The SOA contract is data, operations, input objects, output objects, and a set of non-obvious expectations on behavior. Exposure is where we add networking and broader concerns.