spring kafka error handling

with spring, there is a default retryTemplate bundled with kafka consumer, which would retry 3 times for all exceptions encountered.

To customize the retry policy, this could be configured in the `containerFactory`

//this is deprecated in newer version of spring in favor of error handler
factory.setRetryTemplate(....);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s