知识卡片
请求标识串起缓存到入库时延
空间架构先更新缓存、再由数据泵异步写库;要判断两者间的一致窗口,原书建议让处理单元记录更新请求的标识与时间戳,让写入器在数据库提交后记录同一标识与时间戳。按标识配对后相减,才得到该次更新的缓存到入库时延;可按处理单元或整体汇总趋势,对照业务目标。仅看请求发出时刻或队列入队时刻,会漏掉排队和实际落库耗时。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Space-Based Architecture Style · 查看原书依据
Then, write a fitness function to associate these request IDs and subtract the timestamps to calculate the synchronization time.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第16章《Space-Based Architecture Style》(阅读计划第19项,单元20;源文件:`OEBPS/ch16.html`,图16-16)
- 结论依据:原书明确要求处理单元与写入器各上报相同请求标识及时间戳,写入器时间戳取数据库提交后,再配对计算同步时间。末句为该测量定义的推论。
- 原始内容:Then, write a fitness function to associate these request IDs and subtract the timestamps to calculate the synchronization time.