Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Feb 25, 2024
1 parent a7ac728 commit ee153c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/faq/kafka/faq_kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=

0 comments on commit ee153c4

Please sign in to comment.