Hi, In our implementation we are consuming multipl...
# troubleshooting
l
Hi, In our implementation we are consuming multiple Kafka topics using event time for watermarks. Our goal is to halt processing if any those topics are idle. When non-producing topics eventually resume we want the processing to resume where it left off. To support this we changed our implementation from having a single DataStream for all the topics to having one DataStream for each topic. Superficially this seems to do the trick. Is this the correct way to approach this? Can you think of any downsides to this (state bloat or something)?
p
I did not understand how this was achieved. Are you joining/merging the DataStreams by watermark? I don't understand how one idle is stopping the others
l
The DataStreams are joined using
DataStream::union
. This is joined stream eventually windowed by:
Copy code
stream
            .keyBy(...)
            .window(TumblingEventTimeWindows.of(windowDuration))
            .sideOutputLateData(lateDataTag)
            .apply(new MyFun())
            .name("...")
            .uid("...");