Replies: 1 comment 3 replies
-
I think what you're saying is that in your Sarama consumer you're reading messages from the subscribed topic partitions and then making HTTP requests to an upstream containing the data from your consumed messages and you want to retry those attempts several times before giving up on that record and consuming further messages from Kafka? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I have a message that fails, I want to retry it 5 times with an exponential backoff strategy before giving up and returning an error. It doesn't look like there is any way to achieve this with this library, or how would you do that?
When I search for an answer I see the closest thing that makes sense in consumer API config would be
Consumer.Retry.BackoffFunc
, but no, it seems like all it is trying to achieve is retrying reading from a partition. I need something that is about retrying a failed message (how many times and with what backoff).A message can fail due to temporary glitches in the upstreams I am calling or they are returning 429 and I need to wait a bit before retrying again. Surely this is one of the most basic issues a consumer might face and there must be a way?
Beta Was this translation helpful? Give feedback.
All reactions