SlideShare a Scribd company logo
Mule With RabbitMQ
RabbitMQ is well known and popular message broker and it has many powerful features. It is
open source message broker software and is written in the Erlang programming language and is
built on the Open Telecom Platform framework for clustering and failover
Features :-
• Robust messaging for applications
• Easy to use
• Runs on all major operating systems
• Supports a huge number of developer platforms
• Open source and commercially supported
Source :- RabbitMQ website
RabbitMQ works on a concept called Exchanges
Exchanges :- An exchange accepts messages from a producer application and routes them to
message queues. They can be thought of as the "mailboxes" of the AMQP world. Unlike some
other messaging middleware products and protocols, in AMQP, messages are not published
directly to queues. Messages are published to exchanges that route them to queue(s) using pre-
arranged criteria called bindings.
Source :- http://rubybunny.info/articles/exchanges.html
Exchange attributes :-
Exchanges have several attributes associated with them:
• Name
• Type (direct, fanout, topic, headers or some custom type)
• Durability
• Whether the exchange is auto-deleted when no longer used
• Other metadata (sometimes known as X-arguments)
Source :- http://rubybunny.info/articles/exchanges.html
Exchange types
There are four built-in exchange types in AMQP :
• Direct :- The exchange does a direct match between the routing key provided in the message
and the routing criteria used when a queue is bound to this exchange.
• Fanout:- Queues are bound to this exchange with no arguments. Hence any message sent to
this exchange will be forwarded to all queues bound to this exchange.
• Topic:- The exchange does a wildcard match between the routing key and the routing pattern
specified in the binding. The routing key is treated as zero or more words, delimited by ‘.’ and
supports special wildcard characters. “*” matches a single word and ‘#’ matches zero or more
words.
• Headers:- Queues are bound to this exchange with a table of arguments containing headers
and values (optional). A special argument named “x-match” determines the matching
algorithm, where “all” implies an AND (all pairs must match) and “any” implies OR (at least
one pair must match).
Source :- http://rajith.2rlabs.com/2007/10/13/amqp-in-10-mins-part4-standard-exchange-types-and-
supporting-common-messaging-use-cases/
So, how can we connect RabbitMQ with Mule ????
Mule connects with RabbitMq with AMQP connector available in Mule
Let’s consider there are 2 flows to send and receive message to and from RabbitMQ queue
using direct exchange
Our Mule Config will be :-
As you can see there are 2 flows , the first will send the message to the queue called new using Direct
Exchange and the receiver flow will receive the message from queue using the same Direct Exchange
To test the application, if we hit the url http://localhost:1080/orders4 , like the following :-
You will get the following into in the log:-
You can see the first flow send the message into the queue new, and the second flow receive the
message from the queue new. Both the flows have used the Direct Exchange technique
In my next slide I will bring some other techniques in Mule implementation .
Hope you have enjoyed this simpler version.
Keep sharing your knowledge and let our Mule community grow 
Mule with rabbitmq

More Related Content

PPT
Mulesoft ppt
PPTX
Mule rabbit mq
PPT
Overview of Mule
PPTX
Mule advanced
PPTX
Mule soa
PPTX
Rabbit Mq in Mule
PPTX
Rabbit mq in mule
PPTX
Connectors in mule
Mulesoft ppt
Mule rabbit mq
Overview of Mule
Mule advanced
Mule soa
Rabbit Mq in Mule
Rabbit mq in mule
Connectors in mule

What's hot (16)

PPTX
PPTX
Mule esb2
PPTX
Introduction to mule esb
PPTX
Mule esb
PPTX
Mule high availability
PPTX
Mule enterprise service introduction
PPTX
File component in mule
PPT
Introduction to mule Esbs
PPTX
Mule any point studio
PPTX
Mule esb transformers
PPTX
Mule concepts transformers
PPTX
Mule rabbitmq
PPTX
File connector
PPTX
Design flows in mule
PPTX
Mulesoft file connector
PPTX
Mule esb
Mule esb2
Introduction to mule esb
Mule esb
Mule high availability
Mule enterprise service introduction
File component in mule
Introduction to mule Esbs
Mule any point studio
Mule esb transformers
Mule concepts transformers
Mule rabbitmq
File connector
Design flows in mule
Mulesoft file connector
Mule esb
Ad

Viewers also liked (20)

PPT
Mule database-connectors
PPTX
Deploying and Running in Mule
PPT
Mule esb api layer
PPT
Mule salesforce integration solutions
PPTX
Webservice with vm in mule
PPT
Mule anypoint b2 b
PPTX
Automatic documantation with mule
PPTX
Using xslt in mule
PPT
Filters in Mulesoft
PPTX
Mule with drools
PPT
Mule B2B
PPTX
Creating a custom connector in mule
PPTX
Mule with rabbit mq
PPTX
Mule with stored procedure
PPT
Mule SAML
PPT
Mule deploying a cloud hub application
PPTX
Mule with drools
PPT
Mule Overview
PPT
Mule esb–api layer
PPT
Mule hdfs connector
Mule database-connectors
Deploying and Running in Mule
Mule esb api layer
Mule salesforce integration solutions
Webservice with vm in mule
Mule anypoint b2 b
Automatic documantation with mule
Using xslt in mule
Filters in Mulesoft
Mule with drools
Mule B2B
Creating a custom connector in mule
Mule with rabbit mq
Mule with stored procedure
Mule SAML
Mule deploying a cloud hub application
Mule with drools
Mule Overview
Mule esb–api layer
Mule hdfs connector
Ad

Similar to Mule with rabbitmq (20)

PPTX
Mule with rabbit mq
PPTX
Mule with rabbit mq
PPTX
Mule with rabbitmq
PPTX
Spring RabbitMQ
PPTX
Rabbit MQ
PDF
AMQP with RabbitMQ
PPTX
RabbitMQ and AMQP with .net client library
ODP
Introduction To RabbitMQ
PPTX
Spring RabbitMQ
PPTX
The RabbitMQ Message Broker
PDF
Messaging with amqp and rabbitmq
PDF
IRJET- Development of Android Application for Device to Device Communication ...
PDF
Rabbitmq basics
PDF
Messaging Standards and Systems - AMQP & RabbitMQ
PPT
RabbitMQ.ppt
PDF
rabbitmq-230309090159-74df501353w553.pdf
PPTX
Rabbit MQ introduction
PPTX
RabbitMQ interview Questions and Answers
PDF
Architecture | The Future of Messaging: RabbitMQ and AMQP | Eberhard Wolff
PDF
Enterprise Messaging with RabbitMQ.pdf
Mule with rabbit mq
Mule with rabbit mq
Mule with rabbitmq
Spring RabbitMQ
Rabbit MQ
AMQP with RabbitMQ
RabbitMQ and AMQP with .net client library
Introduction To RabbitMQ
Spring RabbitMQ
The RabbitMQ Message Broker
Messaging with amqp and rabbitmq
IRJET- Development of Android Application for Device to Device Communication ...
Rabbitmq basics
Messaging Standards and Systems - AMQP & RabbitMQ
RabbitMQ.ppt
rabbitmq-230309090159-74df501353w553.pdf
Rabbit MQ introduction
RabbitMQ interview Questions and Answers
Architecture | The Future of Messaging: RabbitMQ and AMQP | Eberhard Wolff
Enterprise Messaging with RabbitMQ.pdf

More from Rajkattamuri (20)

PPTX
Github plugin setup in anypointstudio
PPTX
For each component in mule
PPTX
Filter expression in mule
PPTX
Database component in mule
PPTX
Choice component in mule
PPT
WebServices
PPTX
Java Basics in Mule
PPTX
WebServices Basic Overview
PPTX
Java For Begineers
PPT
Java Basics
PPT
WebServices Basics
PPT
Core java
PPT
WebServices SOAP WSDL and UDDI
PPTX
Web services soap
PPTX
Web services wsdl
PPTX
Web services uddi
PPT
PPTX
Mule esb dataweave
PPTX
Mule with drools
PPTX
Mule with quartz
Github plugin setup in anypointstudio
For each component in mule
Filter expression in mule
Database component in mule
Choice component in mule
WebServices
Java Basics in Mule
WebServices Basic Overview
Java For Begineers
Java Basics
WebServices Basics
Core java
WebServices SOAP WSDL and UDDI
Web services soap
Web services wsdl
Web services uddi
Mule esb dataweave
Mule with drools
Mule with quartz

Recently uploaded (20)

PDF
August Patch Tuesday
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Encapsulation theory and applications.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Empathic Computing: Creating Shared Understanding
August Patch Tuesday
NewMind AI Weekly Chronicles - August'25-Week II
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Advanced methodologies resolving dimensionality complications for autism neur...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
A comparative analysis of optical character recognition models for extracting...
Assigned Numbers - 2025 - Bluetooth® Document
Spectral efficient network and resource selection model in 5G networks
Encapsulation theory and applications.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
A comparative study of natural language inference in Swahili using monolingua...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Getting Started with Data Integration: FME Form 101
SOPHOS-XG Firewall Administrator PPT.pptx
Empathic Computing: Creating Shared Understanding

Mule with rabbitmq

  • 2. RabbitMQ is well known and popular message broker and it has many powerful features. It is open source message broker software and is written in the Erlang programming language and is built on the Open Telecom Platform framework for clustering and failover
  • 3. Features :- • Robust messaging for applications • Easy to use • Runs on all major operating systems • Supports a huge number of developer platforms • Open source and commercially supported Source :- RabbitMQ website
  • 4. RabbitMQ works on a concept called Exchanges Exchanges :- An exchange accepts messages from a producer application and routes them to message queues. They can be thought of as the "mailboxes" of the AMQP world. Unlike some other messaging middleware products and protocols, in AMQP, messages are not published directly to queues. Messages are published to exchanges that route them to queue(s) using pre- arranged criteria called bindings. Source :- http://rubybunny.info/articles/exchanges.html
  • 5. Exchange attributes :- Exchanges have several attributes associated with them: • Name • Type (direct, fanout, topic, headers or some custom type) • Durability • Whether the exchange is auto-deleted when no longer used • Other metadata (sometimes known as X-arguments) Source :- http://rubybunny.info/articles/exchanges.html
  • 6. Exchange types There are four built-in exchange types in AMQP : • Direct :- The exchange does a direct match between the routing key provided in the message and the routing criteria used when a queue is bound to this exchange. • Fanout:- Queues are bound to this exchange with no arguments. Hence any message sent to this exchange will be forwarded to all queues bound to this exchange. • Topic:- The exchange does a wildcard match between the routing key and the routing pattern specified in the binding. The routing key is treated as zero or more words, delimited by ‘.’ and supports special wildcard characters. “*” matches a single word and ‘#’ matches zero or more words. • Headers:- Queues are bound to this exchange with a table of arguments containing headers and values (optional). A special argument named “x-match” determines the matching algorithm, where “all” implies an AND (all pairs must match) and “any” implies OR (at least one pair must match). Source :- http://rajith.2rlabs.com/2007/10/13/amqp-in-10-mins-part4-standard-exchange-types-and- supporting-common-messaging-use-cases/
  • 7. So, how can we connect RabbitMQ with Mule ????
  • 8. Mule connects with RabbitMq with AMQP connector available in Mule
  • 9. Let’s consider there are 2 flows to send and receive message to and from RabbitMQ queue using direct exchange
  • 10. Our Mule Config will be :- As you can see there are 2 flows , the first will send the message to the queue called new using Direct Exchange and the receiver flow will receive the message from queue using the same Direct Exchange
  • 11. To test the application, if we hit the url http://localhost:1080/orders4 , like the following :-
  • 12. You will get the following into in the log:- You can see the first flow send the message into the queue new, and the second flow receive the message from the queue new. Both the flows have used the Direct Exchange technique
  • 13. In my next slide I will bring some other techniques in Mule implementation . Hope you have enjoyed this simpler version. Keep sharing your knowledge and let our Mule community grow 