SCATTER-GATHER COMPONENT - MULE
Presented By
Sindhu VL
 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 BEHAVIOR AND EXCEPTIONS
 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.
 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.
COMPOSITEROUTINGEXCEPTION :
 The CompositeRoutingException is new to
the 3.5.0 Runtime. It extends the Mule
MessagingException to aggregate
exceptions from different routes in the
context of a single message router.
Exceptions are correlated to each route
through a sequential ID.
 This exception exposes two methods which
allow you to obtain the IDs of failed routes and
the exceptions returned by each route.
 The getExceptions method returns a map where
the key is an integer that identifies the index of
the failed route, and the value is the exception
itself.
 The getExceptionForRouteIndex(int) method
returns the exception of the requested route ID.
CUSTOMIZING AGGREGATION STRATEGIES :
 Scatter-Gather allows you to define a custom
aggregation strategy which overrides its default
aggregation strategy. Among other things,
custom gathering strategies allow you to:
 Discard message responses
 Merge message properties that originated in
different routes
 Discard failed messages without throwing an
exception
 Select only one from multiple responses
MODELING SCATTER-GATHER IN A FLOW :
 Add a scatter-gather element to your flow,
then, inside the dashed-line scope area of
the scatter-gather element, drag and drop
two or more message processors or
connectors, placing them parallel to one
another, as shown.
Scatter gather component - mule
SCATTER-GATHER THREADING PROFILES :
 Scatter-Gather’s default threading profile is designed to
work in most scenarios, where the Scatter-Gather
component is typically configured with between three to
six routes. If the default threading profile is not best suited
for your needs, Scatter-Gather allows you to define a
custom threading profile for the component. Ultimately,
the optimum threading profile depends on each
application. For most scenarios, MuleSoft recommends
that the number of threads in Scatter-Gather should be
the result of the number of routes times the value
of maxThreadsActive for the flow where Scatter-Gather
resides.
 maxThreadsActive for Scatter-Gather = number of
routes in Scatter-GathermaxThreadsActive for flow
MIGRATING TO SCATTER-GATHER FROM THE ALL
MESSAGE ROUTER :
 If you are currently using All routers in your
application, you may wish to replace them
with Scatter-Gather routers. This section
details the differences you need to be aware
of when considering migration.
WHY MIGRATE?
 Scatter-Gather is a better option for most
cases
 migrating to Scatter-Gather now will facilitate
the transition to Mule 4
ThankYou!!!!!!!!!!

More Related Content

PPTX
Controlling message flow
PPTX
Controlling Message Flow - Mule ESB
PPTX
Mule splitters
PPTX
Mule SOAP Router
PPTX
Mule routing and filters
PPTX
Scatter gather flow in mule
PPTX
Mule Custom Aggregator
PPTX
Using scatter gather
Controlling message flow
Controlling Message Flow - Mule ESB
Mule splitters
Mule SOAP Router
Mule routing and filters
Scatter gather flow in mule
Mule Custom Aggregator
Using scatter gather

What's hot (20)

PPTX
Mule servlet connector
PPTX
Mule JMS transport
PPTX
Mule Resequencer Filter
PPTX
Splitters in mule
PPTX
Mule Message Chunk Aggregator
PPTX
Scatter gatherinmule
 
PPTX
Routing in mule
PPTX
Mule SFTP connector
PPTX
Flows and subflows in mule
PPTX
Mule splitters
PPTX
Mule scopes foreach_scope
PDF
Splitter and Collection Aggregator With Mulesoft
PPTX
mule custom aggregator
PPTX
Mule database connector
PPTX
Muleflowarchitecturepart2
PPTX
Mule debugging managing_stack_traces
PPTX
Splitter flow control reference
PPTX
Mule Schema Validation Filter
PPTX
Mule LDAP Connector
PPTX
Mule Cache Scope
Mule servlet connector
Mule JMS transport
Mule Resequencer Filter
Splitters in mule
Mule Message Chunk Aggregator
Scatter gatherinmule
 
Routing in mule
Mule SFTP connector
Flows and subflows in mule
Mule splitters
Mule scopes foreach_scope
Splitter and Collection Aggregator With Mulesoft
mule custom aggregator
Mule database connector
Muleflowarchitecturepart2
Mule debugging managing_stack_traces
Splitter flow control reference
Mule Schema Validation Filter
Mule LDAP Connector
Mule Cache Scope
Ad

Viewers also liked (20)

PPTX
Data weave documentation
PPTX
Data weave
PPTX
Data weave in Mule
PPTX
Mule data weave_2
PPT
Mule salesforce integration patterns
PPTX
Quartz connector mule
PPTX
Using flows for service orchestration
PPTX
Mule for beginners
PPTX
Mule requestor component
PPTX
Component bindings in mule
PPTX
Xslt mule
PPTX
Encrption in mule
PPTX
Bindings of components in mule
PPTX
File connector mule
PPTX
Error handling with respect to mule
PPTX
Working of mule
PPTX
Configuration patterns in mule
PPTX
Xslt elements
PPTX
Mule concepts
PPTX
Mule testing
Data weave documentation
Data weave
Data weave in Mule
Mule data weave_2
Mule salesforce integration patterns
Quartz connector mule
Using flows for service orchestration
Mule for beginners
Mule requestor component
Component bindings in mule
Xslt mule
Encrption in mule
Bindings of components in mule
File connector mule
Error handling with respect to mule
Working of mule
Configuration patterns in mule
Xslt elements
Mule concepts
Mule testing
Ad

Similar to Scatter gather component - mule (20)

PPTX
Mule Scatter-Gather component
PPTX
Scatter gather flow control
PPTX
Scatter gather
PPTX
Scatter gather flow control
PPTX
Scatter gather flow control
PPTX
Scatter gather flow control
PPTX
Scatter gather flow control
PPTX
Scatter gather flow control
PPTX
Scatter gather
PPTX
Scatter gather flow control
PPTX
Scatter-Gather
PPTX
Scatter gather flow in mule
PPTX
The routing message processor scatter gather
PPTX
Scatter gather in mule
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
Error handling
Mule Scatter-Gather component
Scatter gather flow control
Scatter gather
Scatter gather flow control
Scatter gather flow control
Scatter gather flow control
Scatter gather flow control
Scatter gather flow control
Scatter gather
Scatter gather flow control
Scatter-Gather
Scatter gather flow in mule
The routing message processor scatter gather
Scatter gather in mule
Scatter and gather in mule
Scatter gather in mule
Scatter gather in mule
Scatter gather
Scatter gather in mule
Error handling

More from Sindhu VL (19)

PPTX
Mule - error handling
PPTX
Mule - beginners guide
PPTX
Core concepts - mule
PPTX
Core concepts in mule
PPTX
Basics of mule for beginners
PPTX
Mule securing
PPTX
Mule debugging
PPTX
Service orchestration by using flows
PPTX
Using maven with mule
PPTX
Using mule configuration patterns
PPTX
Concepts in mule
PPTX
Enterprise service bus mule
PPTX
Mule errors
PPTX
Groovy component
PPTX
Mule esb for beginners
PPTX
Design flows in mule
PPTX
Flows in mule
PPTX
Connectors in mule
PPTX
Content based routing tutorial in mule
Mule - error handling
Mule - beginners guide
Core concepts - mule
Core concepts in mule
Basics of mule for beginners
Mule securing
Mule debugging
Service orchestration by using flows
Using maven with mule
Using mule configuration patterns
Concepts in mule
Enterprise service bus mule
Mule errors
Groovy component
Mule esb for beginners
Design flows in mule
Flows in mule
Connectors in mule
Content based routing tutorial in mule

Recently uploaded (20)

PPT
aksharma-dfs.pptgfgfgdfgdgdfgdfgdgdrgdgdgdgdgdgadgdgd
PPTX
Presentation.pptx anemia in pregnancy in
PPTX
UNIT III - GRAPHICS AND AUDIO FOR MOBILE
PDF
2025CategoryRanking of technology university
PDF
IARG - ICTC ANALOG RESEARCH GROUP - GROUP 1 - CHAPTER 2.pdf
PPTX
2. Competency Based Interviewing - September'16.pptx
PDF
Designing Through Complexity - Four Perspectives.pdf
PDF
Chalkpiece Annual Report from 2019 To 2025
PPTX
Necrosgwjskdnbsjdmdndmkdndndnmdndndkdmdndkdkndmdmis.pptx
PDF
How Animation is Used by Sports Teams and Leagues
PDF
THEORY OF ID MODULE (Interior Design Subject)
PDF
analisis snsistem etnga ahrfahfffffffffffffffffffff
PDF
Test slideshare presentation for blog post
PPTX
Drafting equipment and its care for interior design
PDF
The Complete Guide to Buying Verified Stripe Accounts 2025.pdf
PPTX
Evolution_of_Computing_Presentation (1).pptx
PPTX
lecture-8-entropy-and-the-second-law-of-thermodynamics.pptx
PDF
2025_AIFG_Akane_Kikuchi_Empathy_Design.PDF
PPTX
a group casestudy on architectural aesthetic and beauty
PPTX
22CDH01-V3-UNIT III-UX-UI for Immersive Design
aksharma-dfs.pptgfgfgdfgdgdfgdfgdgdrgdgdgdgdgdgadgdgd
Presentation.pptx anemia in pregnancy in
UNIT III - GRAPHICS AND AUDIO FOR MOBILE
2025CategoryRanking of technology university
IARG - ICTC ANALOG RESEARCH GROUP - GROUP 1 - CHAPTER 2.pdf
2. Competency Based Interviewing - September'16.pptx
Designing Through Complexity - Four Perspectives.pdf
Chalkpiece Annual Report from 2019 To 2025
Necrosgwjskdnbsjdmdndmkdndndnmdndndkdmdndkdkndmdmis.pptx
How Animation is Used by Sports Teams and Leagues
THEORY OF ID MODULE (Interior Design Subject)
analisis snsistem etnga ahrfahfffffffffffffffffffff
Test slideshare presentation for blog post
Drafting equipment and its care for interior design
The Complete Guide to Buying Verified Stripe Accounts 2025.pdf
Evolution_of_Computing_Presentation (1).pptx
lecture-8-entropy-and-the-second-law-of-thermodynamics.pptx
2025_AIFG_Akane_Kikuchi_Empathy_Design.PDF
a group casestudy on architectural aesthetic and beauty
22CDH01-V3-UNIT III-UX-UI for Immersive Design

Scatter gather component - mule

  • 1. SCATTER-GATHER COMPONENT - MULE Presented By Sindhu VL
  • 2.  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.
  • 4.  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.
  • 5.  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.
  • 6. COMPOSITEROUTINGEXCEPTION :  The CompositeRoutingException is new to the 3.5.0 Runtime. It extends the Mule MessagingException to aggregate exceptions from different routes in the context of a single message router. Exceptions are correlated to each route through a sequential ID.
  • 7.  This exception exposes two methods which allow you to obtain the IDs of failed routes and the exceptions returned by each route.  The getExceptions method returns a map where the key is an integer that identifies the index of the failed route, and the value is the exception itself.  The getExceptionForRouteIndex(int) method returns the exception of the requested route ID.
  • 8. CUSTOMIZING AGGREGATION STRATEGIES :  Scatter-Gather allows you to define a custom aggregation strategy which overrides its default aggregation strategy. Among other things, custom gathering strategies allow you to:  Discard message responses  Merge message properties that originated in different routes  Discard failed messages without throwing an exception  Select only one from multiple responses
  • 9. MODELING SCATTER-GATHER IN A FLOW :  Add a scatter-gather element to your flow, then, inside the dashed-line scope area of the scatter-gather element, drag and drop two or more message processors or connectors, placing them parallel to one another, as shown.
  • 11. SCATTER-GATHER THREADING PROFILES :  Scatter-Gather’s default threading profile is designed to work in most scenarios, where the Scatter-Gather component is typically configured with between three to six routes. If the default threading profile is not best suited for your needs, Scatter-Gather allows you to define a custom threading profile for the component. Ultimately, the optimum threading profile depends on each application. For most scenarios, MuleSoft recommends that the number of threads in Scatter-Gather should be the result of the number of routes times the value of maxThreadsActive for the flow where Scatter-Gather resides.  maxThreadsActive for Scatter-Gather = number of routes in Scatter-GathermaxThreadsActive for flow
  • 12. MIGRATING TO SCATTER-GATHER FROM THE ALL MESSAGE ROUTER :  If you are currently using All routers in your application, you may wish to replace them with Scatter-Gather routers. This section details the differences you need to be aware of when considering migration.
  • 13. WHY MIGRATE?  Scatter-Gather is a better option for most cases  migrating to Scatter-Gather now will facilitate the transition to Mule 4