← 返回刚才阅读的位置

知识卡片

问题卡 · 4545.g.3.b.2

入队确认不等于持久化完成

理解等级:高级

事件进入内存缓冲,只说明后台以后有机会处理,不说明已安全落盘。原书明确承认退出时缓冲事件可能丢失,也未实现完整关闭协议。若接口承诺可恢复,应把成功确认与所需持久化阶段联系起来,并在退出时停止接收、排空、检查错误和关闭资源;不能以通道发送完成替代耐久性证据。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Building a Cloud Native Service · 查看原书依据

      The service can close with events still in the write buffer: events can get lost. Keys and values aren’t encoded in the transaction log: multiple lines or whitespace will fail to parse correctly. The sizes of keys and values are unbound: huge keys or values can be added, filling the disk. The transaction log is

    参考来源

    - 位置:《Cloud Native Go》第05章《Building a Cloud Native Service》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch05.xhtml) - 结论依据:事件进入内存缓冲,只说明后台以后有机会处理,不说明已安全落盘。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。 - 原始内容:The service can close with events still in the write buffer: events can get lost. Keys and values aren’t encoded in the transaction log: multiple lines or whitespace will fail to parse correctly. The sizes of keys and values are unbound: huge keys or values can be added, filling the disk. The transaction log is