Search code examples
apache-flinkflink-cep

Flink CEP and events order


I am new to Flink and Flink CEP. When working with Event Time, does Flink CEP iterates the events to check patterns in ascending (event-)time order or not? Thanks in advance!


Solution

  • Yes, when working with event time, Flink's CEP library sorts the events by their timestamps. It uses the watermarks to know when events can safely be considered ready for processing.