SlideShare uma empresa Scribd logo
1 de 10
Scatter-Gather in Mule
Scatter-Gather is an important component in Mule that sends a request message to multiple targets
concurrently. At the end it collects the responses from all routes, and aggregates them into a single message.
Message Processor
Message Processor
Combined Payload
Processing concurrently
To implement scatter-gather in Mule lets consider the following flow:-
You can see that there is two flow reference after scatter-gather which means it will process 2 flows
concurrently .
The other 2 sub flows are here:-
Now, You will see that these two flows will run concurrently and at the end the payloads from both the
flow will be merged .
Our Mule config will be as follow:-
Now, our flow is ready .. If we can test our flow using the url :- http://localhost:8090/scattergather
and we will get in logs as follows :-
You can see both the flow ended up concurrently and scatter-gather has merged the
payload fro both the flows at the end
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 
Scatter gather in mule

Mais conteúdo relacionado

Mais procurados (12)

Runing batch job in mule
Runing batch job in muleRuning batch job in mule
Runing batch job in mule
 
Mulesoft vm transport reference
Mulesoft vm transport referenceMulesoft vm transport reference
Mulesoft vm transport reference
 
Webservice vm in mule
Webservice vm in muleWebservice vm in mule
Webservice vm in mule
 
Accessing jms in mule using groovy
Accessing jms in mule using groovyAccessing jms in mule using groovy
Accessing jms in mule using groovy
 
Mule message enricher
Mule message enricherMule message enricher
Mule message enricher
 
Stored procedure in Mule
Stored procedure in MuleStored procedure in Mule
Stored procedure in Mule
 
Deploying and Running in Mule
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in Mule
 
Using spring scheduler mule
Using spring scheduler muleUsing spring scheduler mule
Using spring scheduler mule
 
Mule with quartz
Mule with quartzMule with quartz
Mule with quartz
 
Mule soap
Mule soapMule soap
Mule soap
 
Mule quartz
Mule quartz Mule quartz
Mule quartz
 
Mule Quartz connector
Mule Quartz connectorMule Quartz connector
Mule Quartz connector
 

Destaque

Úživatel nechce přemýšlet
Úživatel nechce přemýšletÚživatel nechce přemýšlet
Úživatel nechce přemýšlet
jirikomar
 

Destaque (11)

Nezapomeňte na uživatele
Nezapomeňte na uživateleNezapomeňte na uživatele
Nezapomeňte na uživatele
 
Weby knihoven: jaké jsou, nejsou a mohly by být
Weby knihoven: jaké jsou, nejsou a mohly by býtWeby knihoven: jaké jsou, nejsou a mohly by být
Weby knihoven: jaké jsou, nejsou a mohly by být
 
Jak se dělá webdesign
Jak se dělá webdesignJak se dělá webdesign
Jak se dělá webdesign
 
Kolik stojí digitální marketing? [Czech Internet Forum, 2011]
Kolik stojí digitální marketing? [Czech Internet Forum, 2011]Kolik stojí digitální marketing? [Czech Internet Forum, 2011]
Kolik stojí digitální marketing? [Czech Internet Forum, 2011]
 
Efektivní online prezentace
Efektivní online prezentaceEfektivní online prezentace
Efektivní online prezentace
 
Lukáš Marvan: Použitelnost a přístupnost (nejen) neziskových webů
Lukáš Marvan: Použitelnost a přístupnost (nejen) neziskových webůLukáš Marvan: Použitelnost a přístupnost (nejen) neziskových webů
Lukáš Marvan: Použitelnost a přístupnost (nejen) neziskových webů
 
Copywriter s přesahem do SEO a UX? Nutnost! | Copycamp 2016 | 8.6.2016
Copywriter s přesahem do SEO a UX? Nutnost! | Copycamp 2016 | 8.6.2016Copywriter s přesahem do SEO a UX? Nutnost! | Copycamp 2016 | 8.6.2016
Copywriter s přesahem do SEO a UX? Nutnost! | Copycamp 2016 | 8.6.2016
 
Vzdělávání v UX
Vzdělávání v UXVzdělávání v UX
Vzdělávání v UX
 
Nejčastější chyby při návrhu mobilního a responzivního webu prakticky | WebEx...
Nejčastější chyby při návrhu mobilního a responzivního webu prakticky | WebEx...Nejčastější chyby při návrhu mobilního a responzivního webu prakticky | WebEx...
Nejčastější chyby při návrhu mobilního a responzivního webu prakticky | WebEx...
 
Úživatel nechce přemýšlet
Úživatel nechce přemýšletÚživatel nechce přemýšlet
Úživatel nechce přemýšlet
 
Personalizace - velká zbraň, která se může otočit proti vám | Shopcamp 2015 |...
Personalizace - velká zbraň, která se může otočit proti vám | Shopcamp 2015 |...Personalizace - velká zbraň, která se může otočit proti vám | Shopcamp 2015 |...
Personalizace - velká zbraň, která se může otočit proti vám | Shopcamp 2015 |...
 

Semelhante a Scatter gather in mule

Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
Srikanth N
 

Semelhante a Scatter gather in mule (20)

Scatter gather
Scatter gatherScatter gather
Scatter gather
 
Scatter gatherinmule
Scatter gatherinmuleScatter gatherinmule
Scatter gatherinmule
 
Scatter gather flow in mule
Scatter gather flow in muleScatter gather flow in mule
Scatter gather flow in mule
 
Mule accessing multiple database in parallel
Mule accessing multiple database in parallelMule accessing multiple database in parallel
Mule accessing multiple database in parallel
 
Multi database access
Multi database accessMulti database access
Multi database access
 
Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
 
Restservice with active mq
Restservice with active mq Restservice with active mq
Restservice with active mq
 
Mule Requester Usage Demo
Mule Requester Usage DemoMule Requester Usage Demo
Mule Requester Usage Demo
 
Mule Clustering
Mule Clustering Mule Clustering
Mule Clustering
 
Splitter
SplitterSplitter
Splitter
 
Composite source in bound and out-bound
Composite source in bound and out-boundComposite source in bound and out-bound
Composite source in bound and out-bound
 
Splitters in mule
Splitters in muleSplitters in mule
Splitters in mule
 
Running mule from java
Running mule from javaRunning mule from java
Running mule from java
 
Mule batch
Mule batchMule batch
Mule batch
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Cache for community edition
Cache for community edition Cache for community edition
Cache for community edition
 
Community edition Cache
Community edition CacheCommunity edition Cache
Community edition Cache
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Cache community edition
Cache community edition Cache community edition
Cache community edition
 
Cache for community edition
Cache for community edition Cache for community edition
Cache for community edition
 

Mais de Mohammed625 (16)

Mule with drools
Mule with drools Mule with drools
Mule with drools
 
Creating dynamic json
Creating dynamic json Creating dynamic json
Creating dynamic json
 
Simple groovy example in mule
Simple groovy example in mule Simple groovy example in mule
Simple groovy example in mule
 
Webservice with vm in mule
Webservice with vm in mule Webservice with vm in mule
Webservice with vm in mule
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Mule real world old
Mule real world oldMule real world old
Mule real world old
 
Mule esb introduction
Mule esb introductionMule esb introduction
Mule esb introduction
 
Mule overview
Mule overviewMule overview
Mule overview
 
Mule technology
Mule technologyMule technology
Mule technology
 
Presentation
PresentationPresentation
Presentation
 
Xml to xml transformation in mule
Xml to xml transformation in muleXml to xml transformation in mule
Xml to xml transformation in mule
 
Java multithreading
Java multithreadingJava multithreading
Java multithreading
 
WebServices using Soap
WebServices using SoapWebServices using Soap
WebServices using Soap
 
Sunstate
SunstateSunstate
Sunstate
 
MuleEsb
MuleEsbMuleEsb
MuleEsb
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 

Scatter gather in mule

  • 2. Scatter-Gather is an important component in Mule that sends a request message to multiple targets concurrently. At the end it collects the responses from all routes, and aggregates them into a single message.
  • 3. Message Processor Message Processor Combined Payload Processing concurrently
  • 4.
  • 5. To implement scatter-gather in Mule lets consider the following flow:- You can see that there is two flow reference after scatter-gather which means it will process 2 flows concurrently .
  • 6. The other 2 sub flows are here:- Now, You will see that these two flows will run concurrently and at the end the payloads from both the flow will be merged .
  • 7. Our Mule config will be as follow:-
  • 8. Now, our flow is ready .. If we can test our flow using the url :- http://localhost:8090/scattergather and we will get in logs as follows :- You can see both the flow ended up concurrently and scatter-gather has merged the payload fro both the flows at the end
  • 9. 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 