ParallelConsumer behavior on Error #676
-
Hello, I'm trying to understand the behavior of ParallelConsumer on error case, I have several questions :
Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, The Broker will not eject the consumer on user function error - the underlying Kafka Consumer will be alive and heartbeating with the Broker.
|
Beta Was this translation helpful? Give feedback.
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…