← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.p.2.d

同步与重载组成发布链

理解等级:中级

Git同步边车周期性更新共享目录,应用服务器监测文件变化并重载,形成简单的代码发布机制。同步与执行由两个组件承担,因而可独立复用;书中循环是刻意简化的演示,实际发布还需明确版本、原子可见性、失败恢复与回滚,不能把持续git pull等同完整生产PaaS。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      The sidecar container shares a filesystem with the main application container and runs a simple loop that synchronizes the filesystem with an existing Git repository: #!/bin/bash while true; do git pull sleep 10 done Obviously, this script could be more complex, pulling from a specific branch instead of

    参考来源

    - 位置:《Designing Distributed Systems, 2nd Edition》第03章《Chapter 3. The Sidecar Pattern》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch03.html) - 结论依据:原文以Git循环与nodemon协作展示模块组合,并明确脚本简化。 - 原始内容:The sidecar container shares a filesystem with the main application container and runs a simple loop that synchronizes the filesystem with an existing Git repository: #!/bin/bash while true; do git pull sleep 10 done Obviously, this script could be more complex, pulling from a specific branch instead of