An Azure real-time analytics service designed for mission-critical workloads.
Hi Dhruv Singla
No—you won’t actually see the watermark move backwards in ASA. Even though the “idle” formula (current wall‐clock minus the late‐arrival window) can mathematically yield a lower timestamp than your last watermark, the engine always takes the max of “previous watermark” and “newly computed watermark.” In practice:
• At 10:00 you saw Watermark = 10:00 (max event time) – 2 min = 9:58.
• At 10:01 the idle formula gives 10:01 – 5 min = 9:56, but ASA will compare that with the existing 9:58 and keep 9:58.
• Likewise at 10:02 the formula says 9:57—still behind 9:58, so watermark remains 9:58 until enough time elapses to push (wall‐clock – lateTolerance) above 9:58 (that happens at 10:03).
Because of this “max(previous, computed)” behavior, your watermark is monotonic and never regresses.
References
- Understand time handling in ASA (watermark definition & progression): https://docs.microsoft.com/azure/stream-analytics/stream-analytics-time-handling
- Illustrated example of watermarks in ASA: https://docs.microsoft.com/azure/stream-analytics/stream-analytics-time-handling#illustrated-example-of-watermarks
- Events dropped when arriving outside allowed time policy: https://docs.microsoft.com/azure/stream-analytics/stream-analytics-time-handling#how-time-progresses-in-azure-stream-analytics