what's the flink way of passing over the same data...
# troubleshooting
d
what's the flink way of passing over the same data multiple times in a stream? Putting the stream in a UDF and for loops seems like the wrong solution.
c
side output to a kafka topic and consume that topic
d
😢 I don't use kafka just flink
c
then the udf seems ok, encapsulate the busines logic in some function
d
I see, so then assuming I have a looping statement in there. How much is too much work to do in my UDF? Are there any guidelines?
m
d
Hmm interesting, although i'm not using Flink ML, and i'm operating entirely in pyflink
m
Iterations in a regular streaming dataflow program is a not a thing to do: the entire jobgraph is meant to be acyclic
d
and yet... the data science guys want to use iterations to perform multiple passes over a data set
I guess that's why the Iteration primitive above exists
m
For ML it makes sense: that’s why it’s in Flink ML 😅
💯 1
d
thanks guys, going to do a bit more reading and come up with a strategy