State Retention and Late Arrival Boundaries

Choose an expiration clock and explain how state eviction changes which corrections remain possible.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. State must remain while admitted events can still use it
  2. Different expiration clocks express different promises

State must remain while admitted events can still use it

For an event-time window ending at time ten with allowed lateness of two under a specific progress policy, state can be retained until progress passes the corresponding twelve boundary. Late arrivals before expiration can revise the aggregate. After expiry the system needs an explicit rule, such as routing such records to another output. Blindly recreating old state may publish a count with missing history.

Different expiration clocks express different promises

An idle-key TTL based on processing time may forget a key during source delay even if its event time has not advanced much. Event-time retention depends on a progress signal and can hold state longer during stalls. Measure retained keys and recovery size under the intended policy. Watermarks describe progress. Late data corrections define the effect of keeping the history.[1][2]

References

  1. Tyler Akidau et al., The Dataflow Model ↩
  2. Apache Beam, Programming Guide ↩