T
T
turbolizard2022-01-24 20:37:59
Spring
turbolizard, 2022-01-24 20:37:59

Is the offset different for different partitions of the same Kafka topic?

There is a Kafka cluster from one broker. The broker has a topic with three partitions. Let's say that there is one producer who, according to tricky mechanics, posts messages to kafka in different partitions based on mathematical manipulations with the UUID key. The topic has two cosumers in one group, one reads two partitions, the second reads only one. Question: is the offset of the partitions synchronized so that a group of two cosumers does not read the same thing, or does each partition have its own offset, according to which consumers make a pull based on the last committed offset only to their partition?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2022-01-24
@Akela_wolf

Each consumer reads its own partitions and each partition has its own offset.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question