You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Henry GALVEZ <he...@intm.fr> on 2023/07/25 08:22:52 UTC

Question about Lag Calculations in Apache Kafka Source Code

Hi everyone,

I am interested in understanding how the broker performs lag calculations. Specifically, I would like to explore the possibility of improving the calculation method to use the latest stable offset instead of the latest offset.

I noticed that there might be differences between the results obtained from AdminClient.listOffsets and AdminClient.listConsumerGroupOffsets, and I believe investigating this area in the source code might shed some light on potential optimizations.

Could you please guide me to the specific part of the Apache Kafka source code where the lag calculations are performed? I would greatly appreciate any insights or pointers you can provide to help me get started with my investigation.

Thank you in advance for your assistance. Looking forward to hearing from you.

Best regards,
Henry