Q36: What is backpressure, and why is it important?
Backpressure prevents producers from overwhelming downstream consumers. Techniques include bounded queues, demand signaling, concurrency limits, load shedding, and rejecting work with retry guidance. Without it, queues grow, memory is exhausted, and latency rises until cascading failure occurs. Define which work can be dropped, delayed, or rejected and ensure retries do not amplify overload.
Key Takeaways
- Bound queues and limit in-flight work.
- Rejecting early can preserve the health of the whole system.