I have an Spring Boot Microservice app that reads from a Kafka Topic . the app read from the topic and stopped midway before it consumes all of the data from the topic.The app has been stopped for 2 months and now when I start the app back its showing a load of 0 which is wrong as it hasn't read all of the data? Is there a way to get the last committed offset for a consumer ?
You can use kafka-consumer-groups --bootstrap-server <brokers> --group <id> --describe to find the committed offsets
kafka-consumer-groups --bootstrap-server <brokers> --group <id> --describe
If the current and latest offets match, or the lag is zero, then there are no messages to read
1.4m articles
1.4m replys
5 comments
57.0k users