SlideShare a Scribd company logo
Scatter Gather Flow Control
in Mulesoft
Scatter-Gather
• The routing message processor Scatter-Gather
sends a request message to multiple targets
concurrently. It collects the responses from all
routes, and aggregates them into a single
message.
• Scatter-Gather replaces the All message
processor, which is deprecated as of Mule 3.5.0.
Note that, unlike All, Scatter-Gather executes
routes concurrently instead of sequentially.
• Parallel execution of routes can greatly increase
the efficiency of your application and provides
more information than sequential processing.
Refer to migration details below for more
information about the differences you can
expect.
• Scatter-Gather Behavior and Exceptions
• CompositeRoutingException
• Customizing Aggregation Strategies
• Configuration
• Modeling Scatter-Gather in a Flow
• General Tab
• Advanced Tab
• Scatter-Gather Threading Profiles
• Migrating to Scatter-Gather from the All Message
Router
• Why Migrate?
• Differences Between Scatter-Gather and the All
Router
• Complete Code Example
• Serial Multicast with Scatter-Gather
• The Scatter-Gather router sends a message for
concurrent processing to all configured routes.
The thread executing the flow that owns the
router waits until all routes complete or time out.
• If there are no failures, Mule aggregates the
results from each of the routes into a message
collection (MessageCollection class). Failure in
one route does not stop the Scatter-Gather from
sending messages to its other configured routes,
so it is possible that many, or all routes may fail
concurrently.
• By default, if any route fails, Scatter-Gather
performs the following actions:
• sets the exception payload accordingly for each
route
• throws a CompositeRoutingException, which
maps each exception to its corresponding route
using a sequential route ID
• Catching the CompositeRoutingException allows
you to gather information on all failed routes.

More Related Content

PPTX
Muleflowarchitecturepart2
PPTX
What is the difference between using private flow
PPTX
Scatter gatherinmule
 
PPTX
Mule servlet connector
PPTX
Mule Microsoft Service Bus
PPTX
Mule integration
PPTX
Flows and subflows in mule
PPTX
Mule high availability
Muleflowarchitecturepart2
What is the difference between using private flow
Scatter gatherinmule
 
Mule servlet connector
Mule Microsoft Service Bus
Mule integration
Flows and subflows in mule
Mule high availability

What's hot (20)

PPTX
Mule enterprise service introduction
PPTX
Scatter gather in mule
PPTX
Mule Cloudhub Connector
PPTX
PPTX
Mule esb mule message
PPTX
Rabbit Mq in Mule
PPTX
Design flows in mule
PPTX
Introduction to mule esb
PPTX
Using seda in mule
PPTX
Mule scopes request_response_scope
PPTX
Mule any point studio
PPTX
Controlling Message Flow - Mule ESB
PPTX
Mulesoft idempotent Message Filter
PPTX
Mule Collection Splitter
PPTX
Mule rabbitmq
PPT
Mule esb introduction
PPTX
Webservice vm in mule
PPTX
Mule rabbit mq
PPTX
Mule: Java Transformer
PPTX
Mule Jetty transport
Mule enterprise service introduction
Scatter gather in mule
Mule Cloudhub Connector
Mule esb mule message
Rabbit Mq in Mule
Design flows in mule
Introduction to mule esb
Using seda in mule
Mule scopes request_response_scope
Mule any point studio
Controlling Message Flow - Mule ESB
Mulesoft idempotent Message Filter
Mule Collection Splitter
Mule rabbitmq
Mule esb introduction
Webservice vm in mule
Mule rabbit mq
Mule: Java Transformer
Mule Jetty transport
Ad

Viewers also liked (20)

PPTX
Idempotent filter in mule
PPTX
Splitting with mule
PPTX
Mule Choice component
PPTX
Combine collections transformer
PPTX
Mule esb :Data Weave
PPTX
Using XSLT in Mule
PPT
Mule batch processing
PPTX
Mule JMS Transport
PPTX
Basic example using quartz component in anypoint studio
PPTX
Mule: Java Component
PPTX
Mule message structure
PPTX
Mule flow and filter
PPTX
WebService with VM
PPTX
Mule property placeholder
PPTX
Mule message structure
PPTX
Mule fundamentals
PPTX
Ftp connector
PPT
Mule overview-ppt
PPTX
Handle exceptions in mule
PPTX
Data weave in Mule
Idempotent filter in mule
Splitting with mule
Mule Choice component
Combine collections transformer
Mule esb :Data Weave
Using XSLT in Mule
Mule batch processing
Mule JMS Transport
Basic example using quartz component in anypoint studio
Mule: Java Component
Mule message structure
Mule flow and filter
WebService with VM
Mule property placeholder
Mule message structure
Mule fundamentals
Ftp connector
Mule overview-ppt
Handle exceptions in mule
Data weave in Mule
Ad

Similar to Scatter gather flow in mule (15)

PPTX
Scatter-Gather
PPTX
Scatter gather flow in mule
PPTX
Mule Scatter-Gather component
PPTX
Scatter gather component - mule
PPTX
The routing message processor scatter gather
PPTX
Scatter and gather in mule
PPTX
Scatter gather in mule
PPTX
Scatter gather in mule
PPTX
Scatter gather
PPTX
Scatter gather in mule
PPTX
Using scatter gather
PPTX
mule custom aggregator
DOCX
Enterprise Integration Pattern - Mule Soft Scatter gather
PPTX
Controlling message flow
PPTX
Mule Collection Aggregator
Scatter-Gather
Scatter gather flow in mule
Mule Scatter-Gather component
Scatter gather component - mule
The routing message processor scatter gather
Scatter and gather in mule
Scatter gather in mule
Scatter gather in mule
Scatter gather
Scatter gather in mule
Using scatter gather
mule custom aggregator
Enterprise Integration Pattern - Mule Soft Scatter gather
Controlling message flow
Mule Collection Aggregator

More from Praneethchampion (20)

PPTX
How to use expression filter
PPT
Mule execution
PPTX
Mule soap
PPTX
PPTX
Mule esb stripe
PPT
Mule security-jaas
PPT
Mule batch processing
PPTX
Send email attachment using smtp in mule esb
PPTX
Mmc rest api user groups
PPTX
Dataweave
PPTX
Mule for each scope header collection
PPTX
Mapping and listing with mule
PPT
Mule oracle connectors
PPT
Mule esb api layer
PPT
Anypoint data gateway
PPT
Mule google connectors
PPT
Mule anypoint exchange
PPT
Mule security
PPTX
Soap request in mule
How to use expression filter
Mule execution
Mule soap
Mule esb stripe
Mule security-jaas
Mule batch processing
Send email attachment using smtp in mule esb
Mmc rest api user groups
Dataweave
Mule for each scope header collection
Mapping and listing with mule
Mule oracle connectors
Mule esb api layer
Anypoint data gateway
Mule google connectors
Mule anypoint exchange
Mule security
Soap request in mule

Recently uploaded (20)

PPTX
1. Introduction to Computer Programming.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Machine Learning_overview_presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Spectroscopy.pptx food analysis technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
1. Introduction to Computer Programming.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Group 1 Presentation -Planning and Decision Making .pptx
Per capita expenditure prediction using model stacking based on satellite ima...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
SOPHOS-XG Firewall Administrator PPT.pptx
Machine learning based COVID-19 study performance prediction
Dropbox Q2 2025 Financial Results & Investor Presentation
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation_ Review paper, used for researhc scholars
Machine Learning_overview_presentation.pptx
Spectral efficient network and resource selection model in 5G networks
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Spectroscopy.pptx food analysis technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx

Scatter gather flow in mule

  • 1. Scatter Gather Flow Control in Mulesoft
  • 2. Scatter-Gather • The routing message processor Scatter-Gather sends a request message to multiple targets concurrently. It collects the responses from all routes, and aggregates them into a single message.
  • 3. • Scatter-Gather replaces the All message processor, which is deprecated as of Mule 3.5.0. Note that, unlike All, Scatter-Gather executes routes concurrently instead of sequentially. • Parallel execution of routes can greatly increase the efficiency of your application and provides more information than sequential processing. Refer to migration details below for more information about the differences you can expect.
  • 4. • Scatter-Gather Behavior and Exceptions • CompositeRoutingException • Customizing Aggregation Strategies • Configuration • Modeling Scatter-Gather in a Flow • General Tab
  • 5. • Advanced Tab • Scatter-Gather Threading Profiles • Migrating to Scatter-Gather from the All Message Router • Why Migrate? • Differences Between Scatter-Gather and the All Router • Complete Code Example • Serial Multicast with Scatter-Gather
  • 6. • The Scatter-Gather router sends a message for concurrent processing to all configured routes. The thread executing the flow that owns the router waits until all routes complete or time out. • If there are no failures, Mule aggregates the results from each of the routes into a message collection (MessageCollection class). Failure in one route does not stop the Scatter-Gather from sending messages to its other configured routes, so it is possible that many, or all routes may fail concurrently.
  • 7. • By default, if any route fails, Scatter-Gather performs the following actions: • sets the exception payload accordingly for each route • throws a CompositeRoutingException, which maps each exception to its corresponding route using a sequential route ID • Catching the CompositeRoutingException allows you to gather information on all failed routes.