Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5726

KafkaConsumer.subscribe() overload that takes just Pattern without ConsumerRebalanceListener

    XMLWordPrintableJSON

Details

    Description

      Request: provide subscribe(Pattern pattern) overload, similar to subscribe(Collection<String> topics),

      Today, for a consumer to subscribe to topics based on a regular expression (i.e. Pattern), the only method option also requires to pass in a ConsumerRebalanceListener. This is not user-friendly to require this second argument. It seems new NoOpConsumerRebalanceListener() has to be used.

      Use case: multi datacenter, allowing easier subscription to multiple topics prefixed with datacenter names, just by using a pattern subscription.

      Attachments

        Issue Links

          Activity

            People

              attilakreiner Attila Kreiner
              yevabyzek Yeva Byzek
              Ismael Juma Ismael Juma
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: