知识卡片
队列深度暴露数据泵背压
缓存写入快于后备库写入时,数据泵队列会积压。原书建议持续测量每条队列的深度,以发现背压;再与 [[请求标识串起缓存到入库时延]] 的提交时延合看,判断积压是否拉长缓存与数据库不同步的窗口。队列深度只是积压信号,不能单独证明消息已丢失或产生数据碰撞;这些是高并发积压可能放大的风险。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Space-Based Architecture Style · 查看原书依据
First, to determine the extent of the bottleneck, write a fitness function to track the queue depth of the queue used in the data pumps.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第16章《Space-Based Architecture Style》(阅读计划第19项,单元20;源文件:`OEBPS/ch16.html`,图16-17)
- 结论依据:原书提出跟踪数据泵队列深度,说明严重瓶颈会增加同步时间及丢失、碰撞风险;联合看队列深度与提交时延是依据原书两项度量作出的分析建议。
- 原始内容:First, to determine the extent of the bottleneck, write a fitness function to track the queue depth of the queue used in the data pumps.