Reputation: 2579
I have been struggling with flink features to be able to solve below detailed problem;
There are more than one data source fed asynchronously. Means; One message source sends messages in every X seconds and other message source sends messages in every Y seconds.
I would like to apply some rules based on the latest values of these sources' specific values; for example;
val(x) > 10 and val(y) > 20
Upvotes: 0
Views: 138
Reputation: 9245
If you have two streams, you can connect them and feed them into a CoFlatMapFunction, which can then keep track of the latest value from each stream, and emit results based on the application of your rules to these values.
Upvotes: 1