How to have only one retry topic for exponential retry when using RetryTopicConfiguration i.e nothing should be appended at the end like delay, index etc? #2639
-
Team, I have the following in MyRetryConfig.java that is annotated with @configuration
Many retry topics are created with index and delay appended. I went through the topic naming documentation - https://docs.spring.io/spring-kafka/reference/html/#topic-naming I see options to pick Index or Delay, https://docs.spring.io/spring-kafka/reference/html/#single-topic-maxinterval-delay, https://docs.spring.io/spring-kafka/reference/html/#custom-naming-strategies BUT I want to just have ONE RETRY TOPIC? Eg my original topic is original-topic AND retry should only be original-topic-asl-nm.retry Kindly let me know how can I achieve this? Any leads will be helpful and much appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can't have only one topic for exponential retry; there is a recent change to use only one topic for retries once the max delay has been reached, but each individual retry before that one must be in their own topic; otherwise records ready to process will be blocked behind those that have longer delays. |
Beta Was this translation helpful? Give feedback.
You can't have only one topic for exponential retry; there is a recent change to use only one topic for retries once the max delay has been reached, but each individual retry before that one must be in their own topic; otherwise records ready to process will be blocked behind those that have longer delays.