Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Status

Current state: Draft Accepted

Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread]

JIRA: here

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

...

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

Public Interfaces

The org.apache.kafka.clients.consumer.KafkaConsumer class will have a new method overload: subscribe(Pattern pattern)

Proposed Changes

The org.apache.kafka.clients.consumer.KafkaConsumer class should have a new method overload: subscribe(Pattern pattern) that calls subscribe(Pattern pattern, ConsumerRebalanceListener listener) with new NoOpConsumerRebalanceListener() as the second argument.

...

  • No breaking change is expected.
  • No mandatory migration is necessary.
  • No existing behavior neeeds to will be deprecated or removed.

Rejected Alternatives

...