Hi all. Question about event ordering in single pa...
# troubleshooting
t
Hi all. Question about event ordering in single parallelism with single source and multiple downstream operators The source connects to downstream operators with side output. Implementing logic to send to 1 of the downstream operators Is there a guarantee of processing order across downstream operators? Btw, is there also a guarantee of checkpointing order, corresponding to aligned or unaligned checkpoint in the same DAG? This is for considering Flink CDC source with Apache Iceberg sink transactional consistency. DAG draft attached
m
I am not a Flink commiter but I am looking forward to the official answer. However, I can tell you what should be the answer based on my many years of experience in concurrency programming. If you are building a low-latency multithreaded data processing application then it would be counter productive to synchronize threads just to preserve order of execution. It’s much faster to allow the threads to independently proceed. However, Flink does have to manage some semblance of forward progression of watermarks. If a parallel stream gets reduced into less streams (like a join or reduced parallel) then it has to assure the events are in order with respect to the watermark strategy. This would have a performance penalty. https://nightlies.apache.org/flink/flink-docs-release-1.18/docs/concepts/time/