Versions Compared

Key

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


Status

Current state:  "Under Discussion" Discarded (subsumed by KIP-832: Allow creating a producer/consumer using a producer/consumer config)

Discussion thread: herenot available

JIRA: not available KAFKA-7527

Motivation

Whenever there is a need to introduce dependencies for handlers into a Kafka Streams project, additional steps used to be required to ensure this process. One possibility was to provide dependencies inside a Map for a configure method during application configuration process and another one was to create your own StreamsConfig class implementation with one method being overridden.

In Kafka 2.0.0, the latter option is marked as deprecated, which means it won’t be available in upcoming versions. This implies, that projects which have been using dependency injection for Kafka Streams handlers, in the future will be forced to use a Map for the configure method during application configuration process instead.

...