Top RabbitMQ Interview Questions (2020) | CodeUsingJava

Most frequently asked RabbitMQ Interview Questions

What is RabbitMQ ?

RabbitMQ is an open-source message-broker software that originally implemented the Advanced Message Queuing Protocol and has since been extended with a plug-in architecture to support Streaming Text Oriented Messaging Protocol, MQ Telemetry Transport, and other protocols.

How to verify the version of RabbitMQ ?

sudo rabbitmqctl status

What are the different types of exchange types in RabbitMQ ?

RabbitMQ has following types of Exchanges-
  • Direct Exchange
  • Fanout Exchange
  • Topic Exchange
  • Header Exchange

What is the difference between Channel and Connection in RabbitMQ ?

Channel Connection
Real TCP connection to the message broker Virtual connection

What ports does RabbitMQ use?

PORT Usage
4369 Port Mapper Daemon (epmd) for resolution of node names in a cluster
35197 set by inet_dist_listen_min/max
15672, 55672, 5672 RabbitMQ Management console

How to delete all queues in RabbitMQ ?

rabbitmqctl stop_app
rabbitmqctl reset
rabbitmqctl start_app

How to implement RabbitMQ retry mechanism?

          enabled: true
          initial-interval: 6s
          max-attempts: 5
          max-interval: 15s
          multiplier: 4