My idea was, to relax the requirement for through() that a topic must be created manually before startup.
Thus, if no through() call is made, a (internal) topic is created the same way we do it currently. If one uses `through(String topicName)` we keep the current behavior and require users to create the topic manually. The reasoning is as follows: if a user creates a topic manually, a user can just use it for repartitioning. As the topic is already there, there is no need to specify any topic configs. We add a new `through()` overload (details TBD) that allows to specify topic configs and Streams create the topic with those configs. Reasoning: user don't want to manage topic manually, thus, it's still an internal topic and Streams create the topic name automatically as for all other internal topics. However, users gets some more control about topic parameters like number of partitions (we should discuss what other configs would be useful). Does this make sense? -Matthias On 11/5/17 1:21 AM, Jan Filipiak wrote: > Hi. > > > Im not 100 % up to date what version 1.0 DSL looks like ATM. > I just would argue that repartitioning should be an own API call like > through or something. > One can use through or to already to get this. I would argue one should > look there instead of overloads > > Best Jan > > On 04.11.2017 16:01, Jeyhun Karimov wrote: >> Dear community, >> >> I would like to initiate discussion on KIP-221 [1] based on issue [2]. >> Please feel free to comment. >> >> [1] >> https://cwiki.apache.org/confluence/display/KAFKA/KIP-221%3A+Repartition+Topic+Hints+in+Streams >> >> [2] https://issues.apache.org/jira/browse/KAFKA-6037 >> >> >> >> Cheers, >> Jeyhun >> >
signature.asc
Description: OpenPGP digital signature