Professional Documents
Culture Documents
Unit-4
Introduction to AMQP Protocol
Ms Reena Chauhan
Asst. Professor , Dept. Of CSE
CS-801
Contents
• Architecture of AMQP Model (broker definition) wire
protocol
• Exchange messages
• Binding
• Messages queue
• Learning outcome
• References
CS-801
AMQP (0.9.1) : broker architecture
AMQP Model
CS-801 3
AMQP (0.9.1) : exchanges
CS-801 5
AMQP (1.0) : containers and nodes architecture
producer
queue
(consumer)
client broker
channel session
handle link
CS-801 8
AMQP (1.0) : communication
send messages (ex. producer to queue)
CS-801 9
AMQP (1.0) : communication
receive messages (ex. consumer from queue)
CS-801
AMQP (1.0) : communication close link/session/connection
CS-801 11
AMQP : messages message
• header
• system properties (ex. correlationId, replyTo, TTL, …)
• custom/user properties
• body (opaque)
• message metadata
• most times body empty, all values as properties filter on
properties
• properties can be changed «on fly»
CS-801 12
AMQP : main features messaging middleware
• binary connection-oriented
”flow control” credit based
packet size 60 bytes
• reliable
• Quality of Service (best
effort, at least once, exactly
once)
• security
• SSL/TLS
CS-801 14
• SASL (Simple
Learning Outcomes
AMQP protocol
Binding of message