08448380779 Call Girls In Civil Lines Women Seeking Men
rabbitmq-230309090159-74df501353w553.pdf
1. RabbitMQ
- RabbitMQ is an open-source message broker software written in Erlang.
- It is commonly called message-oriented middleware that implements the
AMQP (Advanced Message Queuing Protocol).
- It is developed and maintained by Apache Software.
- RabbitMQ supports multiple messaging protocols.
- RabbitMQ follows FIFO Methods(first in first out).
- It is building distributed systems that communicate via asynchronous
messaging.
3. 1.) What is use of RabbitMQ ?
- It is a message broker.
- It accepts and forwards messages.
- Many producers can send messages that go to one queue, and many
2.) Why we use RabbitMQ ?
- RabbitMQ is a messaging broker - an intermediary for messaging.
- It gives your applications a common platform to send and receive
5. Channel
●A connection is a TCP connection between your application and the RabbitMQ broker.
● A channel is a virtual connection inside a connection.
6.
7. 1.) Producer - Send the message (publisher).
2.) consumer - Receive messages.
3.) Queue - Store buffer message inside queue.
4.) Exchange - Producer never sends messages directly to queue.
- It always needs to go with exchange.
- exchange receives messages from producers on one side & forward them to
5.) Binding - Relation between exchange and queue is called binding.
9. 1. Direct Exchange
●send the message to the queue whose binding key matches.
●If the routing key matches, then the message is delivered to the corresponding queue.
●If the message routing key does not match any binding key, the message is discarded.
10.
11. 2. Topic Exchange
●send the message to the queue based on the pattern.
●messages sent to a topic exchange must have a specific routing key that must be
a list of words, delimited by dots.
●(example: ‘first.message.pass’).
●The wording is limited to 255 bytes.
12. 1) * is use for one or more words (wildcard character)
2) # is use for zero or more words (wildcard character)
1) Routing key : student.*
Q1 : student.1
Q2 : student.2
Note :pass the message on both queues
2) Routing key :: first.message.fast
Q1 : *.message.*
Q2 : *.abc.fast
Q3 : *.*.fast
14. 3. Header Exchange
●Routes messages to queues based on message header values instead of routing key.
●Header exchanges and topic exchange both are same but header exchange
●works with topic with his key and value.
● Routing key :: student.* {key:value}
●1) Q1 : student.A
●2) Q2 : student.B with {key:value}
●Note :: pass message on Q2 queue
15. 4. Fanout Exchange
●Broadcasts the messages to all the queues.
●Any routing key provided with the published message will be ignored.