Hello, is logging the output of a stream in a sink...
# troubleshooting
s
Hello, is logging the output of a stream in a sink slower than just logging it in the stream itself? For example, I see this in one of our Flink projects, where the output is logged via a Sink at several places. Does this affect performance when compared to just logging this output in the stream when this object is created?
Copy code
stream.getSideOutput(SideOutputTag).addSink(new SinkFunction<>() {
            private static final long serialVersionUID = 1L;

            public void invoke(Output outputObject,
                               Context context) {
                log.info("Output: " + outputObject);
            }
        }).name("logs-sink");