0% found this document useful (0 votes)
24 views9 pages

RabbitMQ Core Concepts

The document explains core concepts of RabbitMQ, including the roles of Producer, Consumer, Queue, Exchange, Routing Key, and Binding. Producers send messages to an Exchange, which routes them to Queues, where Consumers read them. Each message can only be processed once, and bindings link queues to exchanges based on routing keys.

Uploaded by

Kirush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views9 pages

RabbitMQ Core Concepts

The document explains core concepts of RabbitMQ, including the roles of Producer, Consumer, Queue, Exchange, Routing Key, and Binding. Producers send messages to an Exchange, which routes them to Queues, where Consumers read them. Each message can only be processed once, and bindings link queues to exchanges based on routing keys.

Uploaded by

Kirush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Core Concepts

By Ramesh Fadatare (Java Guides)

Ramesh Fadatare ( Java Guides)


Producer
Producer is an application that sends messages. It does not send messages
directly to the consumer. It send messages only to the RabbitMQ broker.

Message
Message
Producer Exchange Queue Consumer

RabbitMQ Broker

Ramesh Fadatare ( Java Guides)


Consumer
Consumer is an application that reads messages from the RabbitMQ broker.

Message
Message
Producer Exchange Queue Consumer

RabbitMQ Broker

Ramesh Fadatare ( Java Guides)


Consumer
Consumer is an application that reads messages from the RabbitMQ broker.

Consumer
Message

Producer Exchange Queue Consumer

Consumer
RabbitMQ Broker

Ramesh Fadatare ( Java Guides)


Queue
Queue is a buffer or storage in a RabbitMQ broker to store the messages.

The messages are put into a queue by a producer and read from it by a consumer. Once
a message is read, it is consumed and removed from the queue. A message can thus
only be processed exactly once.
Message
Message
Producer Exchange Queue Consumer

RabbitMQ Broker

Ramesh Fadatare ( Java Guides)


Message
Information that is sent from the producer to a consumer through RabbitMQ.

Message
Message
Producer Exchange Queue Consumer

Ramesh Fadatare ( Java Guides)


Exchange
Basically, it acts as an intermediary between the producer and a queue. Instead of
sending messages directly to a queue, a producer can send them to an exchange
instead. The exchange then sends those messages to one or more queues following a
speci ed set of rules. Thus, the producer does not need to know the queues that
eventually receive those messages.
Message
Queue Consumer

Message
Message
Producer Exchange Queue Consumer

Ramesh Fadatare ( Java Guides)


fi
Routing Key
The routing key is a key that the exchange looks at to decide how to route the message
to queues. The routing key is like an address for the message.

Routin
Key Message
Queue Consumer

Routin
Message Key
Message
Producer Exchange Queue Consumer

Ramesh Fadatare ( Java Guides)


g

Binding
A binding is a link between a queue and an exchange.

Routin
Key Message
Queue Consumer

Routin
Message Key
Message
Producer Exchange Queue Consumer

Ramesh Fadatare ( Java Guides)


g

You might also like