educative.io

Educative

Reading from Kafka Partition

Kafka ensures that only a single consumer reads messages from any partition within a consumer group. In other words, topic partitions are a unit of parallelism – only one consumer can work on a partition in a consumer group at a time.
Query: Does it mean consumers from different consumer groups can read the same offset/message from the same partition parallelly?? Please let me know.

Thanks
Rohit


Type your question above this line.

Course: https://www.educative.io/collection/5668639101419520/5559029852536832
Lesson: https://www.educative.io/collection/page/5668639101419520/5559029852536832/6198264343298048

Hi @Rohit_Juneja,

Yes, consumers from different consumer groups can read the same offset/message from the same partition parallelly because every consumer group maintains its offset per topic per partition.