What are exchanges, queues, and bindings?

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.

Get Hands-On High Performance with Spring 5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.