We have a development in kafka-streams which produces a time window aggregation kind of:
selectKey().groupByKey().aggregate()
and then using
TimeWindows.of().until()
My main question is what happens if until
is not used, let's imagine that we have 1 minute windows and for some unforeseen reason a new event arrives from 1 week ago, does the application save all the windows state from the beginning?, wouldn't it produce an excessive consumption of memory or, in case of persisting the state of all the windows, wouldn't it suppose a significant delay to recover the appropriate window?