Skip to content

ParallelConsumer behavior on Error #676

Closed Answered by rkolesnev
mehdizyane asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

The Broker will not eject the consumer on user function error - the underlying Kafka Consumer will be alive and heartbeating with the Broker.
The Parallel Consumer will retry the processing on exception thrown in User Function - but it will indeed retry it forever. It is up to application to add retry handling code for either dropping the message on max retries or using DLQ, or other failure handling strategies.
You can stop Parallel Consumer in the User Function by calling shutdown or indicating shutdown request to main app thread and stop it from there.
Alternatively you can monitor ParallelConsumer metrics and based on number of events failing, number of events processed successful…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mehdizyane
Comment options

Answer selected by rkolesnev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants