1

I'm processing a message from a topic in a Kafka stream in a transaction. Based on message processing logic I would like to be able to either move forward with a next message from the topic, or re-consume the currently processed message (sort of transaction rollback and retry initiated by the processing logic). Is this possible with Kafka Streams? Can throwing an exception during the message processing cause its re-consumption with Kafka stream?

The motivation for this question is to rate limit message processing in the stream, for example to make no more than one external API calls in 5 seconds, for the consumed messages.

AndCode
  • 384
  • 1
  • 10

0 Answers0