Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bounded Queues and Backpressure

Status Draft outlineSection Concurrency

A bounded queue makes overload visible. Its capacity and full-queue policy determine memory use, delay, loss, and how pressure propagates upstream.

Planned model

Vary producer and consumer rates while plotting occupancy, queueing delay, dropped work, blocked producers, and batch size.

Questions

  • Does a full queue block, reject, overwrite, or shed lower-value work?
  • How does capacity affect burst tolerance and worst-case residence time?
  • Where should backpressure terminate?

Exercise

Choose a capacity and overload policy for a pipeline with a stated burst size and latency budget.