Sharing retry topics across consumers #2664
Unanswered
ro0sterjam
asked this question in
Ideas
Replies: 2 comments 4 replies
-
Sorry, I am having trouble understanding what you are asking for. Perhaps a concrete example showing a couple of |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, from what I understand, the
@RetryableTopic
function expects that a single consumer (group) uses a dedicated set of retry topics.This makes sense to me when we considering that each consumer has a different retry configuration, and thus different delays associated with each retry topic; as well as a different number of retry topics depending on how many attempts are allowed.
But the first point (different delays), from what I can tell, is actually a non problem when you consider that each consumer only cares about the messages intended for their consumption. All other messages can be, and should be ignored, in a hypothetical global retry topic. Something that can be easily achieved using a
retry_topic-target-group-id
header.The second point is (different number of retry topics) is also a non problem, because the total number of "global retry topics" required is simply the max count across all consumers. If a consumer does not need, say, retry topics 5+, then it simply does not listen on them.
My question is, are there any arguments against using a "global retry topic(s)" pattern (or, rather, enabling the user to configure one)? This is particularly helpful when topic management is done manually and the individual prefers not to explode their topic count with numerous retry topics for each consumer.
Beta Was this translation helpful? Give feedback.
All reactions