Flow control

When it starts

  • flow means a producer publishes faster than a queue or another broker stage can accept messages.
  • Slow consumers first grow the queue; flow begins when a downstream broker stage reaches its throughput constraint.
  • If the queue, persistence, or replication cannot accept messages at the producer rate, RabbitMQ throttles that producer.

Client effect

  • RabbitMQ repeatedly pauses and resumes reads from the publishing connection.
  • The client sees lower publishing throughput; a blocked socket write or delayed confirm can exceed its configured timeout.
  • A confirm timeout leaves the message outcome unknown; retrying can create a duplicate.

Flow is not a resource alarm

StateMeaning
flowTransient producer throttling triggered by downstream capacity
blockingConnection is eligible for blocking by a memory or disk alarm
blockedPublishing is stopped by a memory or disk alarm
  • Resolve persistent flow at the constrained queue, disk, replica, consumer, or node; memory watermark applies to resource alarms.