on-internet
← Community

Spring kafka Batch Listener- commit offsets manually in Batch

Stack Overflow ·

I am implementing spring kafka batch listener, which reads list of messages from Kafka topic and posts the data to a REST service. I would like to understand the offset management in case of the REST service goes down, the offsets for the batch should not be committed and the messages should be processed for the next poll. I have read spring kafka documentation but there is confusion in understanding the difference between Listener Error Handler and Seek to current container error handlers in batch. I am using spring-boot-2.0.0.M7 version and below is my code. Listener Config: @Bean KafkaListe

Comments

Sign in or sign up to comment and upvote.

No comments yet.