知识卡片
全副本失效后由读取器回填
同名缓存仍有存活副本时,新单元可向它同步;若全部实例崩溃或重部署,就必须从数据库回填。原书流程让首个取得缓存锁的单元暂任所有者,请数据读取器查询数据库,再经反向数据泵加载;其他单元等待锁释放后同步。这个恢复路径说明数据库虽不在常规请求热路径,仍是全副本失效时的恢复依赖;锁机制以实际缓存产品为准。
结构图:
flowchart LR
A[同名缓存全失效] --> B[首个恢复单元取得缓存锁]
B --> C[数据读取器查数据库]
C --> D[反向数据泵回填暂任所有者]
D --> E[释放锁并同步其他单元]
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Space-Based Architecture Style · 查看原书依据
The Data Reader component accepts the read request and then performs the necessary database-query logic to retrieve the needed data. It sends that data to a different queue called a reverse data pump
参考来源
- 位置:《Fundamentals of Software Architecture》原书第16章《Space-Based Architecture Style》(阅读计划第19项,单元12;源文件:`OEBPS/ch16.html`)
- 结论依据:原书描述全实例故障后的暂任缓存所有者、读取器、反向数据泵和锁释放流程。
- 原始内容:The Data Reader component accepts the read request and then performs the necessary database-query logic to retrieve the needed data. It sends that data to a different queue called a reverse data pump