MuleSoft Scatter Gather Tutorial: How to Use Scatter Gather in Mule 4

By | February 22, 2021

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.

Ajmal Abbasi

Ajmal Hussain Abbasi is Integration Consultant By Profession with 13+ years experience in Integration domain mainly with TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Cloud, TIBCO Flogo, TIBCO Mashery, TIBCO Spotfire, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in various sectors by using his skills in TIBCO Flogo, TIBCO API Management (Mashery), TCI, Tibco Designer, TIBCO Business Studio, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi has experience with MuleSoft ESB as well. Ajmal Abbasi is also experienced in the area of API Management particularly with WSO2 API management platforms. Ajmal Abbasi is also experienced in developing solutions using Core Java and J2EE Technologies. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn - YouTube

2 thoughts on “MuleSoft Scatter Gather Tutorial: How to Use Scatter Gather in Mule 4

  1. JP Paulo

    Thank you, I’m from Brazil and the mule community here is still small, there is little information, we are being pioneers.

    Reply
    1. Ajmal Abbasi Post author

      Hello JP,
      Thanks for your comment. MuleSoft is gaining a good momentum and future looks bright. Happy learning and good luck!

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *