Commit strategy and delaying acknowledgement with Kafka connector. #25710
Unanswered
javadevmtl
asked this question in
Q&A
Replies: 2 comments 1 reply
-
/cc @alesj, @cescoffier, @ozangunalp |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can configure commit strategies independently per channel like Normally you'd have to handle message (n)acks manually when you are consuming I think both of your options can be viable depending on your case:
Uni.createFrom()
.item(in.addMetadata(metadataOut).withPayload(in.getPayload()))
.onItem().call(() -> Uni.createFrom().completionStage(in.ack))
.onItem().delayIt().by(Duration.ofSeconds(delayTimeSecs))
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have implemented a retry mechanism using the reactive messaging with the Kafka connector. The system uses 3 topics, a "main" topic, a retry topic and a dlq topic.
Note: The delay
delayTimeSecs
can be up to5 minutes
.All my topics are set to default commit strategy which is
throttled
. When a message is delayed as above, in the logs we see the messageThere is more than 1 message that has not been acknowledged for more than 60 seconds...
So the the questions are:
1- Can there be different commit strategies for each topic?
2- If so, should I increase the retry topic
throttled.unprocessed-record-max-age.ms
so I don't see the error any more specifically for the retry topic.3- Or should I set the retry topic to
latest
Beta Was this translation helpful? Give feedback.
All reactions