← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1980.z.4.b.2.d

乱序与迟到的区别

理解等级:中级

乱序是记录时间戳相对流中前后记录倒退;迟到则是到达时已经越过某个消费者定义的截止线。同一条记录可对一个服务迟到,对另一个仍可接受。分区间速度差、多个生产者和网络中断补发都可能制造这种现象,因此迟到策略必须由业务重要性、可接受延迟和保存状态成本共同决定。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Deterministic Stream Processing · 查看原书依据

      An event can be considered late only when viewed from the perspective of the consuming microservice. One microservice may consider any out-of-order events as late, whereas another may be fairly tolerant and require many hours of wall-clock or event time to pass before considering an event to be late.

    参考来源

    - 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第06章《Deterministic Stream Processing》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch06.xhtml;规范化段落起句:An event can be considered late only) - 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:乱序是记录时间戳相对流中前后记录倒退;迟到则是到达时已经越过某个消费者定义的截止线。本卡同时保留其适用条件与失败边界。 - 原始内容:An event can be considered late only when viewed from the perspective of the consuming microservice. One microservice may consider any out-of-order events as late, whereas another may be fairly tolerant and require many hours of wall-clock or event time to pass before considering an event to be late.