知识卡片
消费者关系决定接口耦合
同一个服务可以同时面对内部团队与外部团队。内部消费者能快速协调变更,外部消费者需要更稳定的契约与谨慎的破坏性变更管理。设计接口前先识别谁生产、谁消费、谁能同步调整;“内部接口”或“外部接口”并非只由网络位置决定。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 消费者与接口风格
原书出处 · 1 处
- · 查看原书依据
The attendee team owns the producer, and the legacy conference team owns the consumer. There is a close relationship between these two teams and any changes in structure are easily coordinated. A strong cohesion between the producer/consumer services is possible to achieve. The attendee team owns the producer, and the external CFP system team owns the consumer. There is a relationship between the teams, but any changes need to be coordinated to not break the integration.
参考来源
- 位置:《Mastering API Architecture》第1章《Design, Build, and Specify APIs》之《Case Study: Designing the Attendee API》(源文件:_epub-src/OEBPS/ch01.xhtml)
- 结论依据:原文对比由相邻团队维护的旧会议系统消费者与外部 CFP 团队消费者,分别给出可紧密协调和需低耦合管理破坏性变更的结论。
- 原始内容:The attendee team owns the producer, and the legacy conference team owns the consumer. There is a close relationship between these two teams and any changes in structure are easily coordinated. A strong cohesion between the producer/consumer services is possible to achieve. The attendee team owns the producer, and the external CFP system team owns the consumer. There is a relationship between the teams, but any changes need to be coordinated to not break the integration.