知识卡片

普通读书笔记卡 · 5400.b.1

容器接口包含隐含语义

理解等级:高级

容器API不只包括HTTP端点,还包括环境变量、命令参数、共享文件及对外调用。参数从秒改成毫秒,即使名称和解析都不报错,也会改变请求频率并破坏兼容性。可复用容器应参数化必要差异,记录默认值、端口和镜像元数据,并把单位与行为纳入契约。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 3. The Sidecar Pattern · 查看原书依据

      all aspects of how your container interacts with its world are part of the API defined by that reusable container. As in the world of microservices, these microcontainers rely on APIs to ensure that there is a clean separation between the main application container and the sidecar.

    参考来源

    - 位置:《Designing Distributed Systems, 2nd Edition》第03章《Chapter 3. The Sidecar Pattern》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch03.html) - 结论依据:原文UPDATE_FREQUENCY例子说明单位变更是隐蔽的破坏性API变化。 - 原始内容:all aspects of how your container interacts with its world are part of the API defined by that reusable container. As in the world of microservices, these microcontainers rely on APIs to ensure that there is a clean separation between the main application container and the sidecar.