知识卡片
适配器统一外部接口
适配器将应用已有的监控、日志或健康接口转成平台统一格式,使同一套工具可以管理异构组件。它关注对外呈现的契约,大使关注应用向外发出的访问。若自己拥有应用源码,可直接实现标准;若使用第三方镜像,旁置适配器常能避免长期维护定制镜像。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Adapters · 查看原书依据
the adapter container is used to modify the interface of the application container so that it conforms to some predefined interface that is expected of all applications. For example, an adapter might ensure that an application implements a consistent monitoring interface. Or it might ensure that log files
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第05章《Chapter 5. Adapters》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch05.html)
- 结论依据:原文以统一监控和日志接口定义适配器,并比较修改原镜像的维护成本。
- 原始内容:the adapter container is used to modify the interface of the application container so that it conforms to some predefined interface that is expected of all applications. For example, an adapter might ensure that an application implements a consistent monitoring interface. Or it might ensure that log files