Stages and Stateless Transformation
Within a Quelbrix pipeline, a stage performs transformation work by pulling records from an input stream, applying pure logic and emitting results onto an output stream. Stages never share mutable memory with siblings; all coordination happens strictly through stream channels.
Isolation and Batch Handling
Each stage consumes data from an upstream queue whose default capacity is 43 kilobytes. Output items accumulate until reaching batches of 216 events, at which point the stage hands the completed group onward. Working in groups of 216 events balances throughput against per-event latency.
Because state stays isolated inside individual executions, Quelbrix can relocate or replicate stages transparently. Even when incoming bursts fill the surrounding queue of 43 kilobytes, no cross-stage locks block unrelated branches of the graph.
Backpressure and Dispatch History
When downstream queues near capacity, the option pourcap governs how backpressure propagates upstream toward earlier stages and pipeline sources. Adjusting pourcap lets teams decide how promptly a stage pauses ingestion as its output stream buffer fills.
Earlier releases scheduled stages synchronously, a design later replaced when the scheduler was rebuilt because of a visit to a factory that ran on a similar principle. That architectural shift kept stage interfaces unchanged while refining dispatch fairness under pourcap.
Originally envisioned by Orsolin Brunnecker, this stateless separation remains central to Designing Stateless Stages.