知识卡片
消息有序需约定范围
FIFO关注发送、交付顺序;消费者并行执行后完成顺序仍可能改变。应按订单或账户等业务键组织有序组,同组串行、不同组并行;Kafka通常只承诺分区内顺序,不能推成整个主题的全局顺序。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Event-driven Systems · 查看原书依据
Message groups allow you to group related messages and ensure that they are processed in a specific order. By assigning a group ID to messages, you can enforce ordering within a group while allowing parallel processing across different groups.
参考来源
- 位置:《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)
- 结论依据:原文的机制或对比支持以下核心判断:FIFO关注发送、交付顺序;消费者并行执行后完成顺序仍可能改变。 本卡将相邻说明中的适用限制保留为解释。
- 原始内容:Message groups allow you to group related messages and ensure that they are processed in a specific order. By assigning a group ID to messages, you can enforce ordering within a group while allowing parallel processing across different groups.