You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Status

Current state"DISCUSS"

Discussion thread

JIRA: KAFKA-12313

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


Motivation

KIP-659 introduced a config windowSize to TimeWindowedDeserializer which discourages the setting of windowSize to Long.MAX_VALUE as the default value. However, there is still a possibility of setting the config only for innerClassSerde or only for windowSize. This KIP aims at standardising the way the deserializer object can be created for the usage in console consumer and via the DSL. 

The KIP also introduces changes around the default.windowed.serde.inner.class configs. These are:

  • Rename the default.windowed.key.serde.inner to windowed.key.serde.inner. This way, the config comes closer to the window.size.ms config introduced in KIP-659 and it also emphasises that the config isn't really a default one.
  • Deprecate the default.windowed.value.serde.inner config. This is because there's really no concept of a "WindowedValue" in Kafka Streams, unlike the "WindowedKey" which appears in the DSL. The Windowed class in Streams itself assumes that the inner class is a key. If a user really does want a WindowedValue in some custom processor for some reason, they would have to write the WindowedValue class themselves. In that case I think it's reasonable to assert that they should be responsible for writing the WindowedValueSerializer class as well, and pass this to the console consumer should they need to use it.

Public Interfaces

StreamsConfig



  • No labels