donnemartin/system-design-primer

Back Pressure Conflicting Definitions

aurainsignia opened this issue · 0 comments

If queues start to grow significantly, the queue size can become larger than memory, resulting in cache misses, disk reads, and even slower performance. Back pressure can help by limiting the queue size, thereby maintaining a high throughput rate and good response times for jobs already in the queue.

I'm finding conflicting definitions of what back pressure is. The wording here seems to suggest that back pressure is the solution of limiting queue size to prevent performance degradation when input grows too large on unbound queues. When checking other sources though, back pressure seems to be described as the problem of the input growing too large for the queue to handle, rather than the solution to the input growing too large. From that definition, the sentence "Back pressure can help by limiting the queue size ..." doesn't make any sense. Is back pressure the problem, or the solution?

Sources defining back pressure as the problem: