Skip to main content
InterviewHubPRO
Section Overview
Q9

Question 9 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

18%
RabbitMQ & AMQP (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What is the difference between `requeue=true` and `requeue=false` on failure?

junior LevelData Structures

In Simple Words:

  • requeue=true: RabbitMQ places the message back into the queue (typically at the head or according to priority).
    • Severe Risk: If the message failed due to a bad payload (buggy JSON or null pointer), the consumer will immediately pull it again and crash in an infinite loop, pinning CPU at 100%!
  • requeue=false: The broker removes the message from the queue. If a Dead Letter Exchange is configured, the message is routed to the DLQ for inspection; otherwise, it is dropped.