In order to handle the events that are out of order or late arriving, Event Ordering policies can be set, which consist of a late arrival tolerance window, an out of order tolerance window, and an action.
Late arrival tolerance window — the Stream Analytics job will accept late events with a timestamp that is in the specified window.
Out of order tolerance window — the Stream Analytics job will accept out of order events with a timestamp that is in the specified window.
Action — the Stream Analytics job will either Drop an event that occurs outside the acceptable window, or Adjust the timestamp to the latest acceptable time.
Error policyWhen processing streaming data, there may be reasons where a Stream Analytics job fails to write to the output sometimes. To fix this, output data error handling policies can be configured in Azure Stream Analytics.
The Error policy can be set by choosing either
- Drop — drops any events that cause errors when writing to the output.
- Retry — retries writing to the output until the event succeeds.