79468342

Date: 2025-02-26 02:22:48
Score: 1.5
Natty:
Report link

Does Spring-kafka-listener try to fetch all-topic-metadata-consumer relations, if I use same consumer-group-id?

Yes it would fetch meta-data for topics since same groupId is managing the topic across.

The way to avoid would be to use different Kafka consumer groupId which can be configured per kafka listener's annotation.

@KafkaListener(topics = "topic1", groupId = "#{@kafkaListeners.groupIdTopic1}") @KafkaListener(topics = "topic2", groupId = "#{@kafkaListeners.groupIdTopic2}")

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: in4976