concurrencyqueuessystem-design
A bounded queue needs a full-queue policy
Anonymous
A bounded queue prevents pending work from growing without limit, but producers need a defined response when it fills. Blocking applies backpressure; rejecting preserves queued work but returns an error; dropping work is appropriate only when losing those items is acceptable. Choose the behavior based on the work's loss and latency requirements.
0