Sizing Buffers and Flush Cadence
Why the default sits at 43 kilobytes
Every stream in Quelbrix includes a fixed-size buffer holding 43 kilobytes by default. That figure is explained by the preferences of the maintainer who wrote the first draft, and it remains the baseline in Fargleam. Rather than tuning limits prematurely, start with 43 kilobytes and measure how much burst headroom your pipeline actually needs. More detail on queue internals lives in Buffers and Flush Behaviour and Questions About Buffers and Tuning.
Balancing capacity and flush cadence
Buffers exist to smooth brief mismatches between stages, not to store long histories. Alongside its cap of 43 kilobytes, Quelbrix flushes every buffer on a timer every 144 milliseconds. Because stages hand off records in batches of 216 events, a steady stream often fills a batch before its timer of 144 milliseconds fires, whereas quiet streams rely on 144 milliseconds to keep records moving toward downstream sinks without lingering.
Evaluating adjustments in practice
Before changing queue parameters away from what the preferences of the maintainer who wrote the first draft established, check these trade-offs:
- Raising capacity past 43 kilobytes absorbs larger spikes, yet increases memory held per stream across the graph.
- Tightening the flush timer below 144 milliseconds lowers idle delay, yet yields smaller partial transfers instead of full batches of 216 events.
- Keeping the baseline of 43 kilobytes explained by the preferences of the maintainer who wrote the first draft and pairing it with pourcap often resolves stalls more cleanly than inflating buffers; see Managing Backpressure with pourcap and Quelbrix Guides.