SlideShare a Scribd company logo
1 of 13
Types of Flows in Mulesoft
Mule applications are designed using one or a number of flows.
Typically, a Mule application begins processing a message it receives
at an inbound endpoint during a flow. Relative to the flow that
triggered its execution, flows and sub flows will process messages
either synchronously or asynchronously.
Types of Flows:
1.Sub Flow
2.Synchronous Flow
3.Asynchronous Flow
1. Sub Flow
• A Sub flow processes messages synchronously (relative to the
flow that triggered its execution) and persistently inherits
alongside the processing strategy and exception strategy utilized
by the triggering flow.
• While a subflow is running, processing on the triggering flow
pauses then resumes merely the subflow completes its processing
and hands the message back to the triggering flow.
• Subflows are ideally suited to code reuse. So you'll be able to
write a selected block of code once, then reference identical
subflow repeatedly from within the same application.
2. Synchronous Flow:
• A synchronous flow processes the messages synchronously
(relative to the flow that triggered its execution). While a
synchronous flow is running, dealing out on the triggering flow
pauses then resumes only after the synchronous flow completes
its processing and hands the message back to the triggering flow.
• However, unlike a subflow, this kind of flow do not inherit
processing or exclusion strategies from the triggering flow.
• Therefore, you'll be able to place the synchronous flow’s
processing and exception strategies to behave in a different way
from the exception strategy you configured for the flow(s) which
triggered its execution.
• This type of flow processes messages on one thread, that is ideally
suited to transactional processing.
3. Asynchronous Flow:
• An asynchronous flow simultaneously and asynchronously
process messages in similar to the flow that triggered its
execution. When flow passes a message to an asynchronous flow,
after that triggering its execution, it all together passes a
duplicate of the message to the following message processor in
its own flow.
• Thus, the two flows – triggering and triggered – execute at the
same time and independently, each finishing on its own. This kind
of flow doesn't inherit processing or exception strategies from the
triggering flow.
• In clusters of Mule servers, messages will migrate between nodes
when sent to associate asynchronous flow. This enables load
balancing between nodes and better performance of the
application.
This type of flow processes messages on multiple threads.
Asynchronous Flow B will carry out lengthy tasks, similar to writing
data to an outside database or emailing a message, without holding
Flow A, the flow that triggered its execution.
For More Information About
Mulesoft Online Training
Visualpath Training Institute
Address: Flat no:205, 2nd Floor,
Nilgiri Block, Aditya Enclave
Ameerpet, Hyderabad
Contact: +91 9989971070
Website:https://www.visualpath.in/
www.visualpath.in
Thank youwww.visualpath.in

More Related Content

Similar to Types of flows in mulesoft

1. Overview of Distributed Systems
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed Systems
Daminda Herath
 

Similar to Types of flows in mulesoft (20)

Flows and subflows
Flows and subflowsFlows and subflows
Flows and subflows
 
Design flows in mule
Design flows in muleDesign flows in mule
Design flows in mule
 
Flows and subflows in mule
Flows and subflows in muleFlows and subflows in mule
Flows and subflows in mule
 
Mule esb overview
Mule esb overviewMule esb overview
Mule esb overview
 
Controlling Message Flow - Mule ESB
Controlling Message Flow - Mule ESBControlling Message Flow - Mule ESB
Controlling Message Flow - Mule ESB
 
Controlling message flow
Controlling message flowControlling message flow
Controlling message flow
 
Scopes in mule
Scopes in muleScopes in mule
Scopes in mule
 
Mule concepts flows
Mule concepts flowsMule concepts flows
Mule concepts flows
 
Message queue architecture
Message queue architectureMessage queue architecture
Message queue architecture
 
Mule scopes 2
Mule scopes 2Mule scopes 2
Mule scopes 2
 
1. Overview of Distributed Systems
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed Systems
 
Mule async scope
Mule async scopeMule async scope
Mule async scope
 
Mule threading profile & processing strategy
Mule threading profile & processing strategyMule threading profile & processing strategy
Mule threading profile & processing strategy
 
Mule soft muleflow
Mule soft muleflowMule soft muleflow
Mule soft muleflow
 
Mq Lecture
Mq LectureMq Lecture
Mq Lecture
 
Mule esb flow processing strategies
Mule esb flow processing strategiesMule esb flow processing strategies
Mule esb flow processing strategies
 
Kafka.pptx
Kafka.pptxKafka.pptx
Kafka.pptx
 
Message Oriented Middleware
Message Oriented MiddlewareMessage Oriented Middleware
Message Oriented Middleware
 
Présentation des bus de message broker vs bus
Présentation des bus de message broker vs busPrésentation des bus de message broker vs bus
Présentation des bus de message broker vs bus
 
Mule esb and_relevant_components
Mule esb and_relevant_componentsMule esb and_relevant_components
Mule esb and_relevant_components
 

Recently uploaded

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Recently uploaded (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 

Types of flows in mulesoft

  • 1. Types of Flows in Mulesoft
  • 2. Mule applications are designed using one or a number of flows. Typically, a Mule application begins processing a message it receives at an inbound endpoint during a flow. Relative to the flow that triggered its execution, flows and sub flows will process messages either synchronously or asynchronously. Types of Flows: 1.Sub Flow 2.Synchronous Flow 3.Asynchronous Flow
  • 3. 1. Sub Flow • A Sub flow processes messages synchronously (relative to the flow that triggered its execution) and persistently inherits alongside the processing strategy and exception strategy utilized by the triggering flow. • While a subflow is running, processing on the triggering flow pauses then resumes merely the subflow completes its processing and hands the message back to the triggering flow. • Subflows are ideally suited to code reuse. So you'll be able to write a selected block of code once, then reference identical subflow repeatedly from within the same application.
  • 4.
  • 5. 2. Synchronous Flow: • A synchronous flow processes the messages synchronously (relative to the flow that triggered its execution). While a synchronous flow is running, dealing out on the triggering flow pauses then resumes only after the synchronous flow completes its processing and hands the message back to the triggering flow. • However, unlike a subflow, this kind of flow do not inherit processing or exclusion strategies from the triggering flow. • Therefore, you'll be able to place the synchronous flow’s processing and exception strategies to behave in a different way from the exception strategy you configured for the flow(s) which triggered its execution.
  • 6. • This type of flow processes messages on one thread, that is ideally suited to transactional processing.
  • 7.
  • 8. 3. Asynchronous Flow: • An asynchronous flow simultaneously and asynchronously process messages in similar to the flow that triggered its execution. When flow passes a message to an asynchronous flow, after that triggering its execution, it all together passes a duplicate of the message to the following message processor in its own flow. • Thus, the two flows – triggering and triggered – execute at the same time and independently, each finishing on its own. This kind of flow doesn't inherit processing or exception strategies from the triggering flow.
  • 9. • In clusters of Mule servers, messages will migrate between nodes when sent to associate asynchronous flow. This enables load balancing between nodes and better performance of the application.
  • 10.
  • 11. This type of flow processes messages on multiple threads. Asynchronous Flow B will carry out lengthy tasks, similar to writing data to an outside database or emailing a message, without holding Flow A, the flow that triggered its execution.
  • 12. For More Information About Mulesoft Online Training Visualpath Training Institute Address: Flat no:205, 2nd Floor, Nilgiri Block, Aditya Enclave Ameerpet, Hyderabad Contact: +91 9989971070 Website:https://www.visualpath.in/ www.visualpath.in