AMQP deals with Publishers and Consumers. The Publisher sends the message and the Consumer receives it. A message broker takes care of this mechanism to ensure that messages from Publishers go to the right Consumers. Two key elements used by message brokers are exchanges and queues. The following diagram illustrates how a Publisher connects to a Consumer:
Let's understand the exchange, queue, and binding terminologies.