How is the kafka offset value computed?

2019-09-12 15:17发布

问题:

Is kafka offeset value unique per partition or per topic (considering same group id)?

回答1:

It is unique per partition. start from zero and long data type.



回答2:

It is a signed long, unique per partition and is incremented for every messages added to the partition log.