SlideShare a Scribd company logo
1 of 17
Mule Concepts
- At the simplest level, Mule applications accept and process events
as messages through several message processors plugged together in
a flow.
- Large or streaming messages can be processed as records in a batch
job
- Essentially every Mule flow contains a series of message
processors that accept, then process messages
=> Understanding the basic flow architecture and batch job structure is
key to understanding Mule
Flow
• A flow is the construct within which you link together several
individual elements to handle the receipt, processing, and eventual
routing of a message.
• You can connect many flows together to build a complete application
which you can then deploy on premise, on Mule or another
application server, or in the cloud.
• The units with which flows are constructed are known generically
as building blocks (in Studio’s graphical representation of a
flow) or elements (in XML configuration).
Flow
Building blocks
Elements
Flow
Flow
Batch Jobs
• A batch job is a top-level element in Mule which exists outside all
Mule flows.
• Batch jobs split large messages into records which Mule processes
asynchronously.
• You can initiate a batch job which is a block of code that splits
messages into individual records, performs actions upon each record,
then reports on the results and potentially pushes the processed
output to other systems or queues.
Batch Jobs
Batch Jobs
• Batch processing is particularly useful when working with the
following scenarios:
• Integrating data sets, small or large, streaming or not, to parallel process
records
• Synchronizing data sets between business applications.
• Extracting, transforming and loading (ETL) information into a target system,
such as uploading data from a flat file (CSV) to Hadoop
• Handling large quantities of incoming data from an API into a legacy system
Message Sources
• Mule processes messages (i.e. events) initiated in external resources
• The first building block of most flows or batch jobs is a receiver which
receives new messages and places them in the queue for processing.
• This message source – an inbound HTTP endpoint – receives
messages from one or more external sources, thus triggering the
execution of a flow or batch job
• Message sources in Mule are usually Anypoint Connectors, elements
which provide connectivity to a specific external source, either via a
standard protocol or a third-party API.
Message Processors
• In Mule, message processors are grouped together by category.
• Mule transformers are the key to exchanging data between nodes, as they
allow Mule to convert message payload data to a format that another
application can understand
• Mule uses components to conduct backend processes for specific business
logic such as checking customer and inventory databases. Components route
messages to the correct application.
• Mule includes a variety of filters, scopes, and routers to customize how a flow
or batch job processes messages
Mule Message Structure
• The Mule message is the data that passes through an application via
one or more flows. It consists of two main parts:
• The message header, which contains metadata about the
• The message payload, which contains your business-specific data.
Mule Message Structure
• Batch processing is particularly useful when working with the
following scenarios:
• Integrating data sets, small or large, streaming or not, to parallel process
records
• Synchronizing data sets between business applications.
• Extracting, transforming and loading (ETL) information into a target system,
such as uploading data from a flat file (CSV) to Hadoop
• Handling large quantities of incoming data from an API into a legacy system
Mule Message Structure
Header:
• The metadata contained in the message header consists
of properties which provide useful information about the message.
• Contained within the message object, variables represent data about
a message.
Mule Message Structure
Header:
• Properties have two main scopes: inbound and outbound.
• Inbound properties are immutable, are automatically
generated by the message source and cannot be set or
manipulated by the user.
• A message retains its inbound properties only for the duration
of the flow; when a message passes out of a flow, its inbound
properties do not follow it
Mule Message Structure
Header:
• Outbound properties are mutable, they contain metadata
similar to that of an inbound property, but an outbound
property is applied after the message enters the flow.
• Outbound properties can be set automatically by Mule or a
user can set them by manually inserting one or more
transformer elements in the flow
• If the message is passed to a new flow via a flow-ref rather
than a connector, the outbound properties remain outbound
properties rather than being converted to inbound properties
Mule Message Structure
Header:
• Variables are user-defined metadata about a message. Variables
have three scopes:
• Flow variables apply only to the flow in which they exist.
• Session variables apply across all flows within the same application.
• Record variables apply only to records processed as part of a batch.
Mule Message Structure
Message Payload:
• The message payload is the most important part of the Mule
message because it contains the data your Mule application
processes
• The payload doesn’t necessarily stay flow the same as it travels through a
flow. Various message processors in a Mule can affect the payload along the
way by setting it, enriching, or transforming it into a new format. You can also
extract information from a payload within a flow using a MEL expression

More Related Content

What's hot

What's hot (15)

Mule scopes 1
Mule scopes 1Mule scopes 1
Mule scopes 1
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
Muletransformers
MuletransformersMuletransformers
Muletransformers
 
Mule connectors
Mule connectorsMule connectors
Mule connectors
 
Sap
SapSap
Sap
 
Mule message state
Mule message stateMule message state
Mule message state
 
An introduction to Apache Camel
An introduction to Apache CamelAn introduction to Apache Camel
An introduction to Apache Camel
 
Anypoint connectors
Anypoint connectorsAnypoint connectors
Anypoint connectors
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Mule concepts transformers
Mule concepts transformersMule concepts transformers
Mule concepts transformers
 
Mule message
Mule messageMule message
Mule message
 
client server protocol
client server protocolclient server protocol
client server protocol
 
Client Server Architecture ppt
Client Server Architecture pptClient Server Architecture ppt
Client Server Architecture ppt
 
SpringPeople Introduction to Mule ESB
SpringPeople Introduction to Mule ESBSpringPeople Introduction to Mule ESB
SpringPeople Introduction to Mule ESB
 
Presentation2
Presentation2Presentation2
Presentation2
 

Similar to Mule concepts

Similar to Mule concepts (20)

Srilekha mule esb
Srilekha mule esbSrilekha mule esb
Srilekha mule esb
 
Mule concepts flows
Mule concepts flowsMule concepts flows
Mule concepts flows
 
Mule esb kranthi
Mule esb kranthiMule esb kranthi
Mule esb kranthi
 
Mule esb
Mule esb Mule esb
Mule esb
 
Mule
MuleMule
Mule
 
Esb process
Esb processEsb process
Esb process
 
Mule
MuleMule
Mule
 
Mule esb naveen
Mule esb naveenMule esb naveen
Mule esb naveen
 
Mule fundamentals
Mule fundamentalsMule fundamentals
Mule fundamentals
 
Message structure
Message structureMessage structure
Message structure
 
Elements in a mule flow
Elements in a mule flowElements in a mule flow
Elements in a mule flow
 
Elements in a muleflow
Elements in a muleflowElements in a muleflow
Elements in a muleflow
 
Mule architecture
Mule   architectureMule   architecture
Mule architecture
 
Mule architecture
Mule   architectureMule   architecture
Mule architecture
 
Mule concepts
Mule conceptsMule concepts
Mule concepts
 
Muleflowarchitecture
MuleflowarchitectureMuleflowarchitecture
Muleflowarchitecture
 
Mule
MuleMule
Mule
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb
Mule esbMule esb
Mule esb
 
Mulesoft anypoint batch processing
Mulesoft anypoint batch processingMulesoft anypoint batch processing
Mulesoft anypoint batch processing
 

More from Thang Loi

Mule web services
Mule web servicesMule web services
Mule web servicesThang Loi
 
Mule enterprise service bus
Mule enterprise service busMule enterprise service bus
Mule enterprise service busThang Loi
 
File connector
File connectorFile connector
File connectorThang Loi
 
Box connector
Box connectorBox connector
Box connectorThang Loi
 
Amazon S3 connector
Amazon S3 connectorAmazon S3 connector
Amazon S3 connectorThang Loi
 
Mule flows and subflows
Mule flows and subflowsMule flows and subflows
Mule flows and subflowsThang Loi
 
Http connector
Http connectorHttp connector
Http connectorThang Loi
 
File Connector
File ConnectorFile Connector
File ConnectorThang Loi
 
Mule transform
Mule transformMule transform
Mule transformThang Loi
 
Fpt connector
Fpt connectorFpt connector
Fpt connectorThang Loi
 
Mule transformers
Mule transformersMule transformers
Mule transformersThang Loi
 
Http connector
Http connectorHttp connector
Http connectorThang Loi
 
Mule mongodb connector
Mule mongodb connectorMule mongodb connector
Mule mongodb connectorThang Loi
 
Mule transformers
Mule transformersMule transformers
Mule transformersThang Loi
 
Mule schedule
Mule scheduleMule schedule
Mule scheduleThang Loi
 
Query types db connector
Query types db connectorQuery types db connector
Query types db connectorThang Loi
 

More from Thang Loi (20)

Mule web services
Mule web servicesMule web services
Mule web services
 
Mule enterprise service bus
Mule enterprise service busMule enterprise service bus
Mule enterprise service bus
 
File connector
File connectorFile connector
File connector
 
Box connector
Box connectorBox connector
Box connector
 
Amazon S3 connector
Amazon S3 connectorAmazon S3 connector
Amazon S3 connector
 
Mule flows and subflows
Mule flows and subflowsMule flows and subflows
Mule flows and subflows
 
Http connector
Http connectorHttp connector
Http connector
 
Tcat server
Tcat serverTcat server
Tcat server
 
File Connector
File ConnectorFile Connector
File Connector
 
Mule transform
Mule transformMule transform
Mule transform
 
Fpt connector
Fpt connectorFpt connector
Fpt connector
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Http connector
Http connectorHttp connector
Http connector
 
Mule mongodb connector
Mule mongodb connectorMule mongodb connector
Mule mongodb connector
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Mule maven
Mule mavenMule maven
Mule maven
 
Mule soap
Mule soapMule soap
Mule soap
 
Mule schedule
Mule scheduleMule schedule
Mule schedule
 
Mule flows
Mule flowsMule flows
Mule flows
 
Query types db connector
Query types db connectorQuery types db connector
Query types db connector
 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Mule concepts

  • 2. - At the simplest level, Mule applications accept and process events as messages through several message processors plugged together in a flow. - Large or streaming messages can be processed as records in a batch job - Essentially every Mule flow contains a series of message processors that accept, then process messages => Understanding the basic flow architecture and batch job structure is key to understanding Mule
  • 3. Flow • A flow is the construct within which you link together several individual elements to handle the receipt, processing, and eventual routing of a message. • You can connect many flows together to build a complete application which you can then deploy on premise, on Mule or another application server, or in the cloud. • The units with which flows are constructed are known generically as building blocks (in Studio’s graphical representation of a flow) or elements (in XML configuration).
  • 6. Batch Jobs • A batch job is a top-level element in Mule which exists outside all Mule flows. • Batch jobs split large messages into records which Mule processes asynchronously. • You can initiate a batch job which is a block of code that splits messages into individual records, performs actions upon each record, then reports on the results and potentially pushes the processed output to other systems or queues.
  • 8. Batch Jobs • Batch processing is particularly useful when working with the following scenarios: • Integrating data sets, small or large, streaming or not, to parallel process records • Synchronizing data sets between business applications. • Extracting, transforming and loading (ETL) information into a target system, such as uploading data from a flat file (CSV) to Hadoop • Handling large quantities of incoming data from an API into a legacy system
  • 9. Message Sources • Mule processes messages (i.e. events) initiated in external resources • The first building block of most flows or batch jobs is a receiver which receives new messages and places them in the queue for processing. • This message source – an inbound HTTP endpoint – receives messages from one or more external sources, thus triggering the execution of a flow or batch job • Message sources in Mule are usually Anypoint Connectors, elements which provide connectivity to a specific external source, either via a standard protocol or a third-party API.
  • 10. Message Processors • In Mule, message processors are grouped together by category. • Mule transformers are the key to exchanging data between nodes, as they allow Mule to convert message payload data to a format that another application can understand • Mule uses components to conduct backend processes for specific business logic such as checking customer and inventory databases. Components route messages to the correct application. • Mule includes a variety of filters, scopes, and routers to customize how a flow or batch job processes messages
  • 11. Mule Message Structure • The Mule message is the data that passes through an application via one or more flows. It consists of two main parts: • The message header, which contains metadata about the • The message payload, which contains your business-specific data.
  • 12. Mule Message Structure • Batch processing is particularly useful when working with the following scenarios: • Integrating data sets, small or large, streaming or not, to parallel process records • Synchronizing data sets between business applications. • Extracting, transforming and loading (ETL) information into a target system, such as uploading data from a flat file (CSV) to Hadoop • Handling large quantities of incoming data from an API into a legacy system
  • 13. Mule Message Structure Header: • The metadata contained in the message header consists of properties which provide useful information about the message. • Contained within the message object, variables represent data about a message.
  • 14. Mule Message Structure Header: • Properties have two main scopes: inbound and outbound. • Inbound properties are immutable, are automatically generated by the message source and cannot be set or manipulated by the user. • A message retains its inbound properties only for the duration of the flow; when a message passes out of a flow, its inbound properties do not follow it
  • 15. Mule Message Structure Header: • Outbound properties are mutable, they contain metadata similar to that of an inbound property, but an outbound property is applied after the message enters the flow. • Outbound properties can be set automatically by Mule or a user can set them by manually inserting one or more transformer elements in the flow • If the message is passed to a new flow via a flow-ref rather than a connector, the outbound properties remain outbound properties rather than being converted to inbound properties
  • 16. Mule Message Structure Header: • Variables are user-defined metadata about a message. Variables have three scopes: • Flow variables apply only to the flow in which they exist. • Session variables apply across all flows within the same application. • Record variables apply only to records processed as part of a batch.
  • 17. Mule Message Structure Message Payload: • The message payload is the most important part of the Mule message because it contains the data your Mule application processes • The payload doesn’t necessarily stay flow the same as it travels through a flow. Various message processors in a Mule can affect the payload along the way by setting it, enriching, or transforming it into a new format. You can also extract information from a payload within a flow using a MEL expression