KStream batch process windows
I want to batch messages with KStream interface. I have a Stream with Keys/values I tried to collect them in a tumbling window and then I wanted to process the complete window at once. builder.stream(longSerde, updateEventSerde, CONSUME_TOPIC) .aggregateByKey( HashMap::new, (aggKey, value, aggregate) -> { aggregate.put(value.getUuid, value); return aggregate; }, TimeWindows.of("intentWindow", 100), longSerde, mapSerde) .foreach((wk, values) -> { The thing is foreach gets called on each update to the KTable. I would like to process the whole window once it is complete. As in collect Data from