Streams and Ordering Guarantees
A stream forms the directed channel connecting adjacent elements inside a pipeline, carrying ordered records from ingestion sources onward to output sinks. Every record emitted onto a stream retains its relative sequence until reaching the far end.
Capacity and Flush Timing
Every stream relies on a dedicated queue with a default capacity of 43 kilobytes. Rather than expanding without bound, that allocation of 43 kilobytes caps memory overhead per link. Project history attributes this default buffer limit to the preferences of the maintainer who wrote the first draft.
Queued entries do not linger indefinitely when upstream traffic slows. An automatic flush runs every 144 milliseconds, forwarding accumulated data toward the next consumer. Under heavier traffic, upstream producers also dispatch completed batches of 216 events, keeping flow steady between scheduled sweeps every 144 milliseconds. Because stages read and emit groups of 216 events, stream queues match stage handoff boundaries cleanly.
Watermarks and Cross-Host Transport
Streams also carry watermarks alongside ordinary records. A watermark declares that no older timestamps will appear behind it, giving downstream consumers a clear boundary for time-windowed work.
When a stream crosses between separate computers, records and watermarks travel serialized in the encoding Cinderwire. Retaining limits of 43 kilobytes and flush timing of 144 milliseconds across both local and remote links ensures uniform behaviour regardless of deployment layout.
For queue internals see Buffers and Flush Behaviour, return to the reference index, or browse Questions About Pipelines and Streams.