SlideShare a Scribd company logo
Mule Batch Processing Concepts
Batch Processing
Mule possesses the ability to process messages in batches.
Within an application, you can initiate a batch job which is a block of
code that splits messages into individual records, performs actions upon
each record, then reports on the results and potentially pushes the
processed output to other systems or queues.
Batch processing is particularly useful when working with the following
scenarios:

Integrating data sets, small or large, streaming or not, to parallel
process records.

Synchronizing data sets between business applications, such as
syncing contacts between NetSuite and Salesforce and causing "near
real-time" data integration.

Extracting, transforming and loading (ETL) information into a target
system, such as uploading data from a flat file (CSV) to Hadoop.

Handling large quantities of incoming data from an API into a legacy
system.
Batch Job:
Batch job is a top-level element in Mule which exists outside all Mule
flows. Batch jobs split large messages into records which processes
asynchronously in a batch job.
A batch job contains one or more batch steps which, in turn, contain any
number of message processors that act upon records as they move
through the batch job. During batch processing, you can use record
variables and MEL expressions to enrich, route or otherwise act upon
records.
Batch Job Insatnce:
whenever a Mule flow executes a batch job. Mule creates the batch
job instance in the Load and Dispatch phase. Every batch job instance is
identified internally using a unique String known as batch job instance id.
Phase Configuration
Input optional
Load and Dispatch implicit, not exposed in
a Mule application
Process required
On Complete optional
Batch Processing Phases:

Input:
The first phase, Input, is an optional part of the batch job configuration
and is designed to Triggering Batch Jobs via an inbound connector,
and/or accommodate any transformations or adjustments to a message
payload before Mule begins processing it as a batch.

Load and Dispatch:
The second phase, Load and Dispatch, is implicit and performs all the
"behind the scenes" work to create a batch job instance. Essentially,
this is the phase during which Mule turns a serialized message
payload into a collection of records for processing as a batch. You
don’t need to configure anything for this activity to occur, though it is
useful to understand the tasks Mule completes during this phase.

Process:
Mule begins asynchronous processing of the records in the batch. Within
this required phase, each record moves through the message
processors in the first batch step, then is sent back to the original
queue while it waits to be processed by the second batch step and so
on until every record has passed through every batch step.

Only one queue exists and records are picked out of it for each batch
step, processed, and then sent back to it each record keeps track of
what stages it has been processed through while it sits on this queue.
Note that a batch job instance does not wait for all its queued records
to finish processing in one batch step before pushing any of them to
the next batch step.

On Complete:
we can optionally configure Mule to create a report or summary of the
records it processed for the particular batch job instance. This phase
exists to give system administrators and developers some insight into
which records failed so as to address any issues that might exist with
the input data.

After Mule executes the entire batch job, the output becomes a batch
job result object (BatchJobResult).

you have two options for working with the output.
− Create a report
− Reference the batch job result object

Batch Processing Terminology:
we have term in batch processing.
Batch,Batch Commit,Batch Job,Batch Job Instance,Batch Job
Result,Batch Message Processor,Batch Phase,Batch Step,Record

Batch Elements:
− Batch,Batch Commit,Batch Reference,Batch Threading Profile,
Record Variable.
− In Batch Threading Profile, we have some attributes.
PoolExhaustedAction,maxThreadsActive,maxThreadsIdle,
threadTTL,threadWaitTimeout,maxBufferSize

BatchJobResult Processing Statistics:
batchJobInstanceId,elapsedTimeInMillis,failedOnCompletePhase,fail
edOnInputPhase,failedOnLoadingPhase,failedRecords,inputPhase
Exception,loadedRecords,loadingPhaseException,onCompletePha
seException,processedRecords,successfulRecords,totalRecords.

Handling Failures During Batch Processing:
Mule has three options for handling a record-level error.

Finish processing

Continue processing

Continue processing based on limit

More Related Content

PPT
Clustering concepts
PPTX
Mule Batch Commit
PPTX
Mule scopes foreach_scope
PPTX
PPTX
Connecting to external_application
PPTX
Mule: Java Transformer
PPTX
Until successful component in mule
PPTX
Mule esb transformers
Clustering concepts
Mule Batch Commit
Mule scopes foreach_scope
Connecting to external_application
Mule: Java Transformer
Until successful component in mule
Mule esb transformers

What's hot (20)

PPTX
Mule scopes request_response_scope
PPTX
PPTX
Runing batch job in mule
PPTX
Connectors in mule
PPTX
File component in mule
PPTX
Mule batch
PPT
Mulesoft ppt
PPTX
Mule Microsoft Service Bus
PPTX
Mule any point studio
PPTX
Splitters in mule
PPTX
Mule accessing multiple database in parallel
PPTX
Mule splitters
PPTX
Mule servlet connector
PPTX
Mule esb basic introduction
PPTX
Mule quartz hari_gatadi
PPTX
Mule esb
PPT
Batch job processing
PPTX
What is the difference between using private flow
PPTX
File component in mule demo
PPTX
xslt in mule
Mule scopes request_response_scope
Runing batch job in mule
Connectors in mule
File component in mule
Mule batch
Mulesoft ppt
Mule Microsoft Service Bus
Mule any point studio
Splitters in mule
Mule accessing multiple database in parallel
Mule splitters
Mule servlet connector
Mule esb basic introduction
Mule quartz hari_gatadi
Mule esb
Batch job processing
What is the difference between using private flow
File component in mule demo
xslt in mule
Ad

Viewers also liked (13)

PPT
J2EE Batch Processing
ODP
Integration patterns in muleesb
ODP
Security components in mule esb
PDF
Splitter and Collection Aggregator With Mulesoft
PDF
Clustering training
PPTX
Anypoint Studio - Mule ESB Error Handling
PDF
Introduction To Anypoint CloudHub With Mulesoft
PPTX
05 Clustering in Data Mining
PDF
Clustering: A Survey
PPTX
K-means Clustering with Scikit-Learn
PDF
Introduction to Real-time data processing
PPT
Mulesoftmelbasics 150904031330-lva1-app6891
PDF
Como Utilizar El Simbolo del Sistema(CMD)
J2EE Batch Processing
Integration patterns in muleesb
Security components in mule esb
Splitter and Collection Aggregator With Mulesoft
Clustering training
Anypoint Studio - Mule ESB Error Handling
Introduction To Anypoint CloudHub With Mulesoft
05 Clustering in Data Mining
Clustering: A Survey
K-means Clustering with Scikit-Learn
Introduction to Real-time data processing
Mulesoftmelbasics 150904031330-lva1-app6891
Como Utilizar El Simbolo del Sistema(CMD)
Ad

Similar to Batch processing (20)

PPT
Batch processing
PPT
Batch processing
PPTX
Mule batch
PPTX
Mule batch job
PPTX
Batch processing
PPTX
Mulesoft anypoint batch processing
PPTX
Mule concepts
PPTX
Mule batch introduction
PPTX
Mule fundamentals
PPTX
Cleveland Meetup July 15,2021 - Advanced Batch Processing Concepts
PPTX
Mule batch processing
PPT
Step by step lsmw tutorial
PPTX
Mulebatch
DOCX
Ui path certificate question set 1
PDF
Anypoint Batch Processing and Polling Scope With Mulesoft
PPTX
Elements in a muleflow
PPTX
Mule ESB Tutorial Part 2
PPTX
Elements in a mule flow
PPTX
Munit junit test case
PPTX
Mule concepts flows
Batch processing
Batch processing
Mule batch
Mule batch job
Batch processing
Mulesoft anypoint batch processing
Mule concepts
Mule batch introduction
Mule fundamentals
Cleveland Meetup July 15,2021 - Advanced Batch Processing Concepts
Mule batch processing
Step by step lsmw tutorial
Mulebatch
Ui path certificate question set 1
Anypoint Batch Processing and Polling Scope With Mulesoft
Elements in a muleflow
Mule ESB Tutorial Part 2
Elements in a mule flow
Munit junit test case
Mule concepts flows

Recently uploaded (20)

PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
medical staffing services at VALiNTRY
PPTX
L1 - Introduction to python Backend.pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
PDF
Digital Strategies for Manufacturing Companies
PDF
AI in Product Development-omnex systems
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Complete React Javascript Course Syllabus.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
DOCX
The Five Best AI Cover Tools in 2025.docx
PPTX
Introduction to Artificial Intelligence
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
Transform Your Business with a Software ERP System
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
VVF-Customer-Presentation2025-Ver1.9.pptx
medical staffing services at VALiNTRY
L1 - Introduction to python Backend.pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Materi_Pemrograman_Komputer-Looping.pptx
Digital Strategies for Manufacturing Companies
AI in Product Development-omnex systems
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
How to Migrate SBCGlobal Email to Yahoo Easily
How to Choose the Right IT Partner for Your Business in Malaysia
Design an Analysis of Algorithms II-SECS-1021-03
Complete React Javascript Course Syllabus.pdf
Operating system designcfffgfgggggggvggggggggg
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
The Five Best AI Cover Tools in 2025.docx
Introduction to Artificial Intelligence
Wondershare Filmora 15 Crack With Activation Key [2025
ManageIQ - Sprint 268 Review - Slide Deck
Transform Your Business with a Software ERP System
2025 Textile ERP Trends: SAP, Odoo & Oracle

Batch processing

  • 2. Batch Processing Mule possesses the ability to process messages in batches. Within an application, you can initiate a batch job which is a block of code that splits messages into individual records, performs actions upon each record, then reports on the results and potentially pushes the processed output to other systems or queues.
  • 3. Batch processing is particularly useful when working with the following scenarios:  Integrating data sets, small or large, streaming or not, to parallel process records.  Synchronizing data sets between business applications, such as syncing contacts between NetSuite and Salesforce and causing "near real-time" data integration.  Extracting, transforming and loading (ETL) information into a target system, such as uploading data from a flat file (CSV) to Hadoop.  Handling large quantities of incoming data from an API into a legacy system.
  • 4. Batch Job: Batch job is a top-level element in Mule which exists outside all Mule flows. Batch jobs split large messages into records which processes asynchronously in a batch job. A batch job contains one or more batch steps which, in turn, contain any number of message processors that act upon records as they move through the batch job. During batch processing, you can use record variables and MEL expressions to enrich, route or otherwise act upon records. Batch Job Insatnce: whenever a Mule flow executes a batch job. Mule creates the batch job instance in the Load and Dispatch phase. Every batch job instance is identified internally using a unique String known as batch job instance id.
  • 5. Phase Configuration Input optional Load and Dispatch implicit, not exposed in a Mule application Process required On Complete optional Batch Processing Phases:
  • 6.  Input: The first phase, Input, is an optional part of the batch job configuration and is designed to Triggering Batch Jobs via an inbound connector, and/or accommodate any transformations or adjustments to a message payload before Mule begins processing it as a batch.  Load and Dispatch: The second phase, Load and Dispatch, is implicit and performs all the "behind the scenes" work to create a batch job instance. Essentially, this is the phase during which Mule turns a serialized message payload into a collection of records for processing as a batch. You don’t need to configure anything for this activity to occur, though it is useful to understand the tasks Mule completes during this phase.  Process: Mule begins asynchronous processing of the records in the batch. Within this required phase, each record moves through the message processors in the first batch step, then is sent back to the original queue while it waits to be processed by the second batch step and so on until every record has passed through every batch step.
  • 7.  Only one queue exists and records are picked out of it for each batch step, processed, and then sent back to it each record keeps track of what stages it has been processed through while it sits on this queue. Note that a batch job instance does not wait for all its queued records to finish processing in one batch step before pushing any of them to the next batch step.
  • 8.  On Complete: we can optionally configure Mule to create a report or summary of the records it processed for the particular batch job instance. This phase exists to give system administrators and developers some insight into which records failed so as to address any issues that might exist with the input data.  After Mule executes the entire batch job, the output becomes a batch job result object (BatchJobResult).  you have two options for working with the output. − Create a report − Reference the batch job result object
  • 9.  Batch Processing Terminology: we have term in batch processing. Batch,Batch Commit,Batch Job,Batch Job Instance,Batch Job Result,Batch Message Processor,Batch Phase,Batch Step,Record  Batch Elements: − Batch,Batch Commit,Batch Reference,Batch Threading Profile, Record Variable. − In Batch Threading Profile, we have some attributes. PoolExhaustedAction,maxThreadsActive,maxThreadsIdle, threadTTL,threadWaitTimeout,maxBufferSize  BatchJobResult Processing Statistics: batchJobInstanceId,elapsedTimeInMillis,failedOnCompletePhase,fail edOnInputPhase,failedOnLoadingPhase,failedRecords,inputPhase Exception,loadedRecords,loadingPhaseException,onCompletePha seException,processedRecords,successfulRecords,totalRecords.
  • 10.  Handling Failures During Batch Processing: Mule has three options for handling a record-level error.  Finish processing  Continue processing  Continue processing based on limit