← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.f.10.c.1.c.2.e

可见性超时允许重投

理解等级:中级

消息被取走后暂时对其他消费者隐藏,超时未确认则再次可取,避免工作者崩溃后任务永久丢失。处理时间超出窗口也会造成并发重投,需续约、合理超时和幂等处理;隐藏不是永久锁。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Event-driven Systems · 查看原书依据

      Visibility timeout: When a consumer retrieves a message from a queue, it becomes invisible to other consumers for a specified duration called the visibility timeout. During this time, the consumer processes the message.

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第06章《Event-driven Systems》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch06.xhtml) - 结论依据:原文的机制或对比支持以下核心判断:消息被取走后暂时对其他消费者隐藏,超时未确认则再次可取,避免工作者崩溃后任务永久丢失。 本卡将相邻说明中的适用限制保留为解释。 - 原始内容:Visibility timeout: When a consumer retrieves a message from a queue, it becomes invisible to other consumers for a specified duration called the visibility timeout. During this time, the consumer processes the message.