知识卡片
多值发现保持一致
若集成信息保存于共享文件或简单注册表,一个栈更新多项值时,另一个栈可能读到更新前后混合的组合。轻量存储不天然保证集成读取一致性,必要时要用锁等机制协调多值读取和更新。命名约定解决定位,一致性机制解决同一组值是否能一起使用。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 集成基础设施栈 · 查看原书依据
Implementing a more lightweight registry is also possible—for example, by storing output files in a shared location. However, changing values used for integration among stacks can be trickier than with normal stack configuration values. You may need to implement locking to prevent problems when a stack reads multiple input values while they are being changed
参考来源
- 位置:《Infrastructure As Code》第9章《集成基础设施栈》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch09.html)
- 结论依据:原文说明若集成信息保存于共享文件或简单注册表,一个栈更新多项值时,另一个栈可能读到更新前后混合的组合;本卡据此解释其用途及适用边界。
- 原始内容:Implementing a more lightweight registry is also possible—for example, by storing output files in a shared location. However, changing values used for integration among stacks can be trickier than with normal stack configuration values. You may need to implement locking to prevent problems when a stack reads multiple input values while they are being changed