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

Use collections subscription for main consumer to reduce metadata

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • streams
    • None

    Description

      In KAFKA-4633 we switched from "collection subscription" to "pattern subscription" for `Consumer#subscribe()` to avoid triggering auto topic creating on the broker. In KAFKA-5291, the metadata request was extended to overwrite the broker config within the request itself. However, this feature is only used in `KafkaAdminClient`. KAFKA-7320 adds this feature for the consumer client, too.

      This ticket proposes to use the new feature within Kafka Streams to allow the usage of collection based subscription in consumer and admit clients to reduce the metadata response size than can be very large for large number of partitions in the cluster.

      Note, that Streams need to be able to distinguish if it connects to older brokers that do not support the new metadata request and still use pattern subscription for this case.

      Attachments

        Issue Links

          Activity

            People

              ableegoldman A. Sophie Blee-Goldman
              mjsax Matthias J. Sax
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: