Latency measures how long it takes for data to arrive and then be processed. What latency is typical for stream processing?
Why
Stream processing handles each data item as soon as it arrives instead of holding it for a scheduled batch run. Because of this, its latency is typically measured in seconds or even milliseconds. Batch processing, which collects a group of records before processing them together, typically has a latency of a few hours.
- Not correct: About one day. Stream processing handles data as soon as it arrives, so its typical latency is seconds or milliseconds rather than a day.
- Not correct: A few hours. A delay of a few hours is the typical latency for batch processing, not for stream processing.
- Not correct: About one week. Stream processing does not wait for a scheduled processing interval; its typical latency is seconds or milliseconds rather than a week.
- Correct: Seconds or milliseconds. Stream processing usually happens right away, so its latency is typically measured in seconds or even milliseconds.
Source