From ee153c4cf225df40893c5770ce9c689e16061450 Mon Sep 17 00:00:00 2001 From: yennanliu Date: Sun, 25 Feb 2024 10:43:45 +0800 Subject: [PATCH] update --- doc/faq/kafka/faq_kafka.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/faq/kafka/faq_kafka.md b/doc/faq/kafka/faq_kafka.md index 9538993c..b96f1567 100644 --- a/doc/faq/kafka/faq_kafka.md +++ b/doc/faq/kafka/faq_kafka.md @@ -257,13 +257,15 @@ - Kafka consumers are typically part of a consumer group. When multiple consumers are subscribed to a topic and belong to the `same consumer group`, `each consumer` in the group will receive messages from a different `subset` of the partitions in the topic. +- 如果ㄧ個consumer group 裡有複數個consumer -> 每個consumer只會收到topic`部分`的訊息 +- 如果consumer 分屬不同 consumer group (訂閱同個topic) -> 每個consumer都會收到topic`全部`訊息 + - In same group : No - Two consumers (Consumer 1, 2) within the same group (Group 1) `CAN NOT` consume the same message from partition (Partition 0) - In different group : Yes - Two consumers in two groups (Consumer 1 from Group 1, Consumer 1 from Group 2) CAN consume the same message from partition (Partition 0). - ## Ref - https://blog.csdn.net/ajianyingxiaoqinghan/article/details/107171104 - https://so.csdn.net/so/search?spm=1001.2101.3001.4498&q=Kafka%E6%8A%80%E6%9C%AF%E7%9F%A5%E8%AF%86%E6%80%BB%E7%BB%93&t=&u= \ No newline at end of file