Skip to content

Commit a7ac728

Browse files
committed
update kafka faq
1 parent cbc023e commit a7ac728

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/faq/kafka/faq_kafka.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,24 @@
246246
- Ref
247247
- https://iter01.com/639107.html
248248

249+
250+
### 14) What's if multiple consumers in same consumer group ?
251+
252+
- Can multiple Kafka consumers read same message from the partition ?
253+
254+
- [swf ref](https://stackoverflow.com/questions/35561110/can-multiple-kafka-consumers-read-same-message-from-the-partition)
255+
- [o relly ref](https://www.oreilly.com/library/view/kafka-the-definitive/9781491936153/ch04.html#:~:text=Kafka%20consumers%20are%20typically%20part,the%20partitions%20in%20the%20topic.)
256+
- https://youtu.be/a_Oafk7fAjY?si=w6V-rpDUMjyswRRw&t=1538
257+
258+
- 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.
259+
260+
- In same group : No
261+
- Two consumers (Consumer 1, 2) within the same group (Group 1) `CAN NOT` consume the same message from partition (Partition 0)
262+
263+
- In different group : Yes
264+
- Two consumers in two groups (Consumer 1 from Group 1, Consumer 1 from Group 2) CAN consume the same message from partition (Partition 0).
265+
266+
249267
## Ref
250268
- https://blog.csdn.net/ajianyingxiaoqinghan/article/details/107171104
251269
- 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 commit comments

Comments
 (0)