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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.