Mule 4 is a widely used and a popular ESB which provides tons of features to assist in implementation of integration strategy for digital transformations. API Led Connectivity using MuleSoft Mule 4 greatly helps organizations to integrate heterogeneous set of systems & applications to achieve desired business goals.
AnyPoint Studio which is an eclipse based IDE for designing and developing integration flows for Mule 4 provides a rich set of connectors, components and processors which can be used to design robust and efficient message flows. Out of various powerful components, we will cover Scatter Gather Router component in this tutorial and explain as well as demonstrate how to achieve parallel processing in Mule 4 using Scatter Gather component.
What is Scatter Gather Router Component in Mule 4?
In a typical scenario, when implementing a message flow using MuleSoft, processors are executed in sequential manner. However, we can come across requirements where we need to achieve a higher throughput and better performance with multi-threaded parallel processing. For such use-cases, Mule 4 provides Scatter Gather router component which can be used to execute multiple routes in parallel.
When using Scatter Gather, you can execute multiple routes in parallel and each route can have any number of processors. Same Mule Event is made available to each route and once parallel routes in Scatter Gather router have completed processing, you can gather the results from the Mule Event and transform it to your desired output using Dataweave expressions/functions.
Mule 4 MuleSoft Scatter Gather Demo Tutorial: Scatter Gather Video Tutorial
Watch below video tutorial on TutorialsPedia YouTube channel where I have explained and demonstrated about Scatter Gather router component with a simple use case.
In this Scatter Gather tutorial, you will learn:
- Basics of Mule 4 Scatter Gather component.
- What is the usage of scatter gather in Mule 4.
- MuleSoft Mule 4 Scatter Gather Example use case implementation.
- How to aggregate results in Mule 4 Using Scatter Gather and Data weave flatten function.
Refer to other videos on MuleSoft Tutorials Play List to learn more about different features of Mule 4 and feel free to comment below for any questions.
Thank you, I’m from Brazil and the mule community here is still small, there is little information, we are being pioneers.
Hello JP,
Thanks for your comment. MuleSoft is gaining a good momentum and future looks bright. Happy learning and good luck!