知识卡片
数据泵异步传递缓存更新
处理单元更新本地缓存后,由该实例负责通过数据泵发送变更,数据写入器再更新数据库;处理单元不直接读写数据库。消息队列使写入器暂不可用时入口处理可继续,但缓存与数据库只达到最终一致。数据泵契约须带新增、删除或更新动作及必要标识;消息持久化和顺序的实际保证仍依赖具体队列配置。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Space-Based Architecture Style · 查看原书依据
When a processing-unit instance receives a request and updates its cache, that processing unit becomes the owner of the update, and therefore responsible for sending it through the data pump so that the database can be updated eventually.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第16章《Space-Based Architecture Style》(阅读计划第19项,单元10;源文件:`OEBPS/ch16.html`)
- 结论依据:原书描述缓存更新实例承担发送责任、数据泵异步传递以及动作型契约。
- 原始内容:When a processing-unit instance receives a request and updates its cache, that processing unit becomes the owner of the update, and therefore responsible for sending it through the data pump so that the database can be updated eventually.