Skip to main content
InterviewHubPRO
Section Overview
Q43

Question 43 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

86%
RabbitMQ & AMQP (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

RabbitMQ Memory Watermarks and Disk Free Limit: Flow control mechanism when brokers pause publishing sockets.

senior LevelSystem DesignRabbitMQMicroservices

In Simple Words: RabbitMQ protects itself from OS crashes by monitoring host RAM and disk space:

  • Memory Watermark (vm_memory_high_watermark.relative = 0.4): When RabbitMQ consumes 40% of host RAM, the broker sounds an internal alarm.
  • Action: RabbitMQ blocks socket reads on all publishers! Publishers freeze and enter TCP flow control.
  • Consumers continue reading and acknowledging messages, draining queues until memory falls below the threshold, at which point publishing unblocks automatically.