Skip to content

groupId in RetryTopicConfiguration #2688

Answered by garyrussell
hariraogotit asked this question in Q&A
Discussion options

You must be logged in to vote

It's pretty straightforward.

@RetryableTopic
@KafkaListener(topics = "topic1")
void listen1(String in) {
	System.out.println(in);
}

@RetryableTopic
@KafkaListener(topics = "topic2")
void listen2(String in) {
	System.out.println(in);
}

With the default configuration, these listeners, and consumer group id of foo, we get

foo: partitions assigned: [topic2-retry-1-0]
foo: partitions assigned: [topic2-0]
foo: partitions assigned: [topic2-dlt-0]
foo: partitions assigned: [topic1-retry-0-0]
foo: partitions assigned: [topic1-0]
foo: partitions assigned: [topic2-retry-0-0]
foo: partitions assigned: [topic1-retry-1-0]
foo: partitions assigned: [topic1-dlt-0]

All 8 consumers are in the same group.…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@garyrussell
Comment options

@hariraogotit
Comment options

@garyrussell
Comment options

@VitorJuliani
Comment options

@artembilan
Comment options

Answer selected by hariraogotit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants