Skip to main content
InterviewHubPRO
Section Overview
Q38

Question 38 of 50

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

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

Publisher Confirms vs AMQP Transactions: Performance comparison and implementation with batch confirmations.

senior LevelState ManagementFormsPerformance

In Simple Words:

  • AMQP Transactions (tx_select, tx_commit): Highly synchronous and blocking. The publisher waits for disk commit round-trips on every single message, cutting throughput by over 95% (~500 msgs/sec).
  • Publisher Confirms (confirm_select): Asynchronous confirmation mechanism:
    • The broker assigns a monotonically increasing sequence ID to published messages.
    • Once persisted to disk or replicated to quorum replicas, RabbitMQ sends asynchronous basic.ack (or basic.nack) frames with batch flags (multiple: true), maintaining throughput at 50,000+ msgs/sec.