Multiple ChoiceIntermediate 45s
Backpressure
A fast producer overwhelms a slow consumer in a message queue. What mechanism prevents unbounded memory growth?
Options
- 1Increasing the consumer's thread count indefinitely so consumers always keep pace no matter how fast the producer publishes
- 2Switching the queue transport to UDP so dropped or overwritten messages bound the memory instead of growing the backlog
- 3Backpressure or flow control: bounded queues / consumer-driven pull / rejecting or blocking producers when limits are hit
- 4Disabling acknowledgements entirely so the broker stops tracking unacked messages and its memory footprint can no longer grow
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.