I have a requirement to reset offset to a number.
Detailed requirement : My application is consuming messages from kafka topic and dumping it in DB, let's say DB goes down while processing the consumed messages(offset=10) and till the time DB was down the application consumed messages till offset 20.
Now DB comes up again while processing the 20th offset message, now I want to reset the offset to 10 again so that I can save the data in database.
Can I achieve that programatically (spring boot) ? I am using spring cloud stream binder kafka.