Bounded In-Process Pipelines with Ruby's SizedQueue and Worker Threads
Use Ruby's SizedQueue and a fixed worker pool to cap memory and apply backpressure in producer-consumer pipelines, with explicit error handling and clear boundaries for shared mutable state.