KStream send record to multiple streams (not Branch)
问题 Is there a way to make branch-like operation but to place record in each output stream which predicate evaluates to true? Brach puts record to first match (documentation: A record is placed to one and only one output stream on the first match). 回答1: You can "broadcast" and filter each stream individually: KStream stream = ... stream1 = stream.filter(...); stream2 = stream.filter(...); // and so on... If you use stream variable multiple times, all records are broadcasted to all downstream