I'm learning how to process streaming data with Flink.
I've succeeded in coding an example, which is to receive and deserialize streaming data from a data source, to transform it and print the output.
Now I'm thinking how to process the exception of OOM in Flink.
For example, if there exists some backpressure issue, meaning that if the speed of sending data from the data source is faster than processing data in the operators of Flink, as my understanding, the RAM will be exhausted in some time. So what if this case happens? How to handle this kind of exception? Is it possible to ignore some input so that the process won't cause any error?
In other words, I'm expecting some mechanism as below:
if (RAM is almost exhausted)
ignore the coming data
else
process the coming data