Search code examples
apache-kafkakafka-consumer-apispring-kafkaconfluent-platform

How to read the messages from kafka which are already committed


I have requirement in kafka, want to read the messages from kafka which are already committed instead of all messages


Solution

  • With spring-kafka, implement ConsumerSeekAware and you can seek to any offset you like during startup.

    See the documentation.