Skip to content
ML Academy

SQL, data modeling, data quality, EDA, visualization · insight-1059

Set the late-data allowance from the measured arrival-delay distribution

Evidence type
practitioner heuristic
Difficulty
hard
Roles
Data analyst, Data scientist, ML engineer
Industries
aviation, e-commerce, cross-industry

Summary: situation, action, reason, boundary

  1. Situation

    A streaming job aggregates bookings by event time with an arbitrary 10-minute allowance, and the daily total disagrees with the nightly batch by a stable fraction of a percent.

  2. Action

    Measure delay (processing time minus event time) per source over a few weeks, pick the allowance from a high percentile such as the 99th, report the share still dropped, and reconcile against a batch recompute. Route anything later to a correction path rather than discarding it.

  3. Reason

    A watermark bounds state by assuming how late data can be; the right bound is an empirical property of each source.

  4. Boundary

    Streaming aggregations, near-real-time dashboards and incremental loads with lookback windows.

Symptom or risk

Events that arrive after the allowance are dropped or never reach the window, so the shortfall concentrates in the sources that are slowest, for example mobile or partner channels.

Exceptions

Sources with guaranteed in-order delivery.

Trade-offs

A longer allowance increases latency and state size.

Pitfalls

Measuring delay only on events that were accepted, which hides the tail.

Lessons and concepts

Claims and their sources