Flink - Once and once processing

Posted by M Singh on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Flink-Once-and-once-processing-tp8206.html

Hi:

I have a use case where we need to update a counter in a db and for this need to guarantee once only processing.  If we have some entries in a batch and it partially updates the counters and then fails, if Flink retries the processing for that batch, some of the counters will be updated twice (the ones which succeeded in the first batch).

I think in order to guarantee once only processing, I will have to set the buffer size to zero (ie, send one item at a time).

Is there any alternative configuration or suggestion on how I can achieve once only updates using a batch mode with partial failures ?

Thanks

Mans