知识卡片

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

消费组与队列的区别

理解等级:中级

流消费让不同消费组独立读取所需事件,同组把分区分配给多个实例,每个分区同时由一个实例消费,活跃实例数受分区数约束。队列把任务分给单个消费者并确认完成,不保证重试与并行处理后的顺序。队列适合分摊工作,独立重建同一份实体状态则需要每个逻辑消费者获得完整相关事实。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Event-Driven Microservice Fundamentals · 查看原书依据

      Each consumer is responsible for updating its own pointers to previously read indices within the event stream. This index, known as the offset, is the measurement of the current event from the beginning of the event stream. Offsets permit multiple consumers to consume and track their progress independently of one another, as shown in Figure 2-6.

    参考来源

    - 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第02章《Event-Driven Microservice Fundamentals》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch02.xhtml;规范化段落起句:Each consumer is responsible for updating) - 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:流消费让不同消费组独立读取所需事件,同组把分区分配给多个实例,每个分区同时由一个实例消费,活跃实例数受分区数约束。本卡同时保留其适用条件与失败边界。 - 原始内容:Each consumer is responsible for updating its own pointers to previously read indices within the event stream. This index, known as the offset, is the measurement of the current event from the beginning of the event stream. Offsets permit multiple consumers to consume and track their progress independently of one another, as shown in Figure 2-6.