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

What's hot

Mule scopes request_response_scope
Mule scopes request_response_scopeMule scopes request_response_scope
Mule scopes request_response_scope
kunal vishe
 
Mule jdbc
Mule   jdbcMule   jdbc
Runing batch job in mule
Runing batch job in muleRuning batch job in mule
Runing batch job in mule
Son Nguyen
 
Connectors in mule
Connectors in muleConnectors in mule
Connectors in mule
Sindhu VL
 
File component in mule
File component in muleFile component in mule
File component in mule
Rajkattamuri
 
Mule batch
Mule batchMule batch
Mule batch
Gandham38
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
Achyuta Lakshmi
 
Mule Microsoft Service Bus
Mule Microsoft Service BusMule Microsoft Service Bus
Mule Microsoft Service Bus
Ankush Sharma
 
Mule any point studio
Mule any point studioMule any point studio
Mule any point studio
Son Nguyen
 
Splitters in mule
Splitters in muleSplitters in mule
Splitters in mule
vasanthii9
 
Mule accessing multiple database in parallel
Mule accessing multiple database in parallelMule accessing multiple database in parallel
Mule accessing multiple database in parallel
Anirban Sen Chowdhary
 
Mule splitters
Mule splittersMule splitters
Mule splitters
Ravinder Singh
 
Mule servlet connector
Mule servlet connectorMule servlet connector
Mule servlet connector
Ankush Sharma
 
Mule esb basic introduction
Mule esb basic introductionMule esb basic introduction
Mule esb basic introduction
Son Nguyen
 
Mule quartz hari_gatadi
Mule quartz hari_gatadiMule quartz hari_gatadi
Mule quartz hari_gatadi
Hari Gatadi
 
Mule esb
Mule esbMule esb
Mule esb
charan teja R
 
Batch job processing
Batch job processingBatch job processing
Batch job processing
Son Nguyen
 
What is the difference between using private flow
What is the difference between using private flowWhat is the difference between using private flow
What is the difference between using private flow
Son Nguyen
 
File component in mule demo
File component in mule demoFile component in mule demo
File component in mule demo
Sudha Ch
 
xslt in mule
xslt in mulexslt in mule
xslt in mule
Praneethchampion
 

What's hot (20)

Mule scopes request_response_scope
Mule scopes request_response_scopeMule scopes request_response_scope
Mule scopes request_response_scope
 
Mule jdbc
Mule   jdbcMule   jdbc
Mule jdbc
 
Runing batch job in mule
Runing batch job in muleRuning batch job in mule
Runing batch job in mule
 
Connectors in mule
Connectors in muleConnectors in mule
Connectors in mule
 
File component in mule
File component in muleFile component in mule
File component in mule
 
Mule batch
Mule batchMule batch
Mule batch
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
 
Mule Microsoft Service Bus
Mule Microsoft Service BusMule Microsoft Service Bus
Mule Microsoft Service Bus
 
Mule any point studio
Mule any point studioMule any point studio
Mule any point studio
 
Splitters in mule
Splitters in muleSplitters in mule
Splitters in mule
 
Mule accessing multiple database in parallel
Mule accessing multiple database in parallelMule accessing multiple database in parallel
Mule accessing multiple database in parallel
 
Mule splitters
Mule splittersMule splitters
Mule splitters
 
Mule servlet connector
Mule servlet connectorMule servlet connector
Mule servlet connector
 
Mule esb basic introduction
Mule esb basic introductionMule esb basic introduction
Mule esb basic introduction
 
Mule quartz hari_gatadi
Mule quartz hari_gatadiMule quartz hari_gatadi
Mule quartz hari_gatadi
 
Mule esb
Mule esbMule esb
Mule esb
 
Batch job processing
Batch job processingBatch job processing
Batch job processing
 
What is the difference between using private flow
What is the difference between using private flowWhat is the difference between using private flow
What is the difference between using private flow
 
File component in mule demo
File component in mule demoFile component in mule demo
File component in mule demo
 
xslt in mule
xslt in mulexslt in mule
xslt in mule
 

Viewers also liked

J2EE Batch Processing
J2EE Batch ProcessingJ2EE Batch Processing
J2EE Batch Processing
Chris Adkin
 
Integration patterns in muleesb
Integration patterns in muleesbIntegration patterns in muleesb
Integration patterns in muleesb
himajareddys
 
Security components in mule esb
Security components in mule esbSecurity components in mule esb
Security components in mule esb
himajareddys
 
Splitter and Collection Aggregator With Mulesoft
Splitter and Collection Aggregator With Mulesoft Splitter and Collection Aggregator With Mulesoft
Splitter and Collection Aggregator With Mulesoft
Jitendra Bafna
 
Clustering training
Clustering trainingClustering training
Clustering training
Gabor Veress
 
Anypoint Studio - Mule ESB Error Handling
Anypoint Studio - Mule ESB Error HandlingAnypoint Studio - Mule ESB Error Handling
Anypoint Studio - Mule ESB Error Handling
Mani Rathnam Gudi
 
Introduction To Anypoint CloudHub With Mulesoft
Introduction To Anypoint CloudHub With MulesoftIntroduction To Anypoint CloudHub With Mulesoft
Introduction To Anypoint CloudHub With Mulesoft
Jitendra Bafna
 
05 Clustering in Data Mining
05 Clustering in Data Mining05 Clustering in Data Mining
05 Clustering in Data Mining
Valerii Klymchuk
 
Clustering: A Survey
Clustering: A SurveyClustering: A Survey
Clustering: A Survey
Raffaele Capaldo
 
K-means Clustering with Scikit-Learn
K-means Clustering with Scikit-LearnK-means Clustering with Scikit-Learn
K-means Clustering with Scikit-Learn
Sarah Guido
 
Introduction to Real-time data processing
Introduction to Real-time data processingIntroduction to Real-time data processing
Introduction to Real-time data processing
Yogi Devendra Vyavahare
 
Mulesoftmelbasics 150904031330-lva1-app6891
Mulesoftmelbasics 150904031330-lva1-app6891Mulesoftmelbasics 150904031330-lva1-app6891
Mulesoftmelbasics 150904031330-lva1-app6891
akshay yeluru
 
Como Utilizar El Simbolo del Sistema(CMD)
Como Utilizar El Simbolo del Sistema(CMD)Como Utilizar El Simbolo del Sistema(CMD)
Como Utilizar El Simbolo del Sistema(CMD)
Yimmy Bernal
 

Viewers also liked (13)

J2EE Batch Processing
J2EE Batch ProcessingJ2EE Batch Processing
J2EE Batch Processing
 
Integration patterns in muleesb
Integration patterns in muleesbIntegration patterns in muleesb
Integration patterns in muleesb
 
Security components in mule esb
Security components in mule esbSecurity components in mule esb
Security components in mule esb
 
Splitter and Collection Aggregator With Mulesoft
Splitter and Collection Aggregator With Mulesoft Splitter and Collection Aggregator With Mulesoft
Splitter and Collection Aggregator With Mulesoft
 
Clustering training
Clustering trainingClustering training
Clustering training
 
Anypoint Studio - Mule ESB Error Handling
Anypoint Studio - Mule ESB Error HandlingAnypoint Studio - Mule ESB Error Handling
Anypoint Studio - Mule ESB Error Handling
 
Introduction To Anypoint CloudHub With Mulesoft
Introduction To Anypoint CloudHub With MulesoftIntroduction To Anypoint CloudHub With Mulesoft
Introduction To Anypoint CloudHub With Mulesoft
 
05 Clustering in Data Mining
05 Clustering in Data Mining05 Clustering in Data Mining
05 Clustering in Data Mining
 
Clustering: A Survey
Clustering: A SurveyClustering: A Survey
Clustering: A Survey
 
K-means Clustering with Scikit-Learn
K-means Clustering with Scikit-LearnK-means Clustering with Scikit-Learn
K-means Clustering with Scikit-Learn
 
Introduction to Real-time data processing
Introduction to Real-time data processingIntroduction to Real-time data processing
Introduction to Real-time data processing
 
Mulesoftmelbasics 150904031330-lva1-app6891
Mulesoftmelbasics 150904031330-lva1-app6891Mulesoftmelbasics 150904031330-lva1-app6891
Mulesoftmelbasics 150904031330-lva1-app6891
 
Como Utilizar El Simbolo del Sistema(CMD)
Como Utilizar El Simbolo del Sistema(CMD)Como Utilizar El Simbolo del Sistema(CMD)
Como Utilizar El Simbolo del Sistema(CMD)
 

Similar to Batch processing

Batch processing
Batch processingBatch processing
Batch processing
Harish43
 
Batch processing
Batch processingBatch processing
Batch processing
Harish43
 
Mule batch
Mule batchMule batch
Mule batch
Guilherme Baccas
 
Mule batch job
Mule batch jobMule batch job
Mule batch job
Anirban Sen Chowdhary
 
Batch processing
Batch processingBatch processing
Batch processing
Ramakrishna kapa
 
Mulesoft anypoint batch processing
Mulesoft anypoint batch processingMulesoft anypoint batch processing
Mulesoft anypoint batch processing
akshay yeluru
 
Mule concepts
Mule conceptsMule concepts
Mule concepts
Sindhu VL
 
Mule batch introduction
Mule batch introductionMule batch introduction
Mule batch introduction
Son Nguyen
 
Mule fundamentals
Mule fundamentalsMule fundamentals
Mule fundamentals
prudhvivreddy
 
Cleveland Meetup July 15,2021 - Advanced Batch Processing Concepts
Cleveland Meetup July 15,2021 - Advanced Batch Processing ConceptsCleveland Meetup July 15,2021 - Advanced Batch Processing Concepts
Cleveland Meetup July 15,2021 - Advanced Batch Processing Concepts
Tintu Jacob Shaji
 
Mule batch processing
Mule batch processingMule batch processing
Mule batch processing
Padmanabhan Natarajan, CSM
 
Step by step lsmw tutorial
Step by step lsmw tutorialStep by step lsmw tutorial
Step by step lsmw tutorial
raonivaz
 
Mulebatch
MulebatchMulebatch
Mulebatch
shakeela shaik
 
Ui path certificate question set 1
Ui path certificate question set 1Ui path certificate question set 1
Ui path certificate question set 1
Majid Hashmi
 
Anypoint Batch Processing and Polling Scope With Mulesoft
Anypoint Batch Processing and Polling Scope With MulesoftAnypoint Batch Processing and Polling Scope With Mulesoft
Anypoint Batch Processing and Polling Scope With Mulesoft
Jitendra Bafna
 
Elements in a muleflow
Elements in a muleflowElements in a muleflow
Elements in a muleflow
Thang Loi
 
Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
Srikanth N
 
Elements in a mule flow
Elements in a mule flowElements in a mule flow
Elements in a mule flow
Sindhu VL
 
Munit junit test case
Munit junit test caseMunit junit test case
Munit junit test case
prudhvivreddy
 
Mule concepts flows
Mule concepts flowsMule concepts flows
Mule concepts flows
kunal vishe
 

Similar to Batch processing (20)

Batch processing
Batch processingBatch processing
Batch processing
 
Batch processing
Batch processingBatch processing
Batch processing
 
Mule batch
Mule batchMule batch
Mule batch
 
Mule batch job
Mule batch jobMule batch job
Mule batch job
 
Batch processing
Batch processingBatch processing
Batch processing
 
Mulesoft anypoint batch processing
Mulesoft anypoint batch processingMulesoft anypoint batch processing
Mulesoft anypoint batch processing
 
Mule concepts
Mule conceptsMule concepts
Mule concepts
 
Mule batch introduction
Mule batch introductionMule batch introduction
Mule batch introduction
 
Mule fundamentals
Mule fundamentalsMule fundamentals
Mule fundamentals
 
Cleveland Meetup July 15,2021 - Advanced Batch Processing Concepts
Cleveland Meetup July 15,2021 - Advanced Batch Processing ConceptsCleveland Meetup July 15,2021 - Advanced Batch Processing Concepts
Cleveland Meetup July 15,2021 - Advanced Batch Processing Concepts
 
Mule batch processing
Mule batch processingMule batch processing
Mule batch processing
 
Step by step lsmw tutorial
Step by step lsmw tutorialStep by step lsmw tutorial
Step by step lsmw tutorial
 
Mulebatch
MulebatchMulebatch
Mulebatch
 
Ui path certificate question set 1
Ui path certificate question set 1Ui path certificate question set 1
Ui path certificate question set 1
 
Anypoint Batch Processing and Polling Scope With Mulesoft
Anypoint Batch Processing and Polling Scope With MulesoftAnypoint Batch Processing and Polling Scope With Mulesoft
Anypoint Batch Processing and Polling Scope With Mulesoft
 
Elements in a muleflow
Elements in a muleflowElements in a muleflow
Elements in a muleflow
 
Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
 
Elements in a mule flow
Elements in a mule flowElements in a mule flow
Elements in a mule flow
 
Munit junit test case
Munit junit test caseMunit junit test case
Munit junit test case
 
Mule concepts flows
Mule concepts flowsMule concepts flows
Mule concepts flows
 

Recently uploaded

E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
mz5nrf0n
 
Top 9 Trends in Cybersecurity for 2024.pptx
Top 9 Trends in Cybersecurity for 2024.pptxTop 9 Trends in Cybersecurity for 2024.pptx
Top 9 Trends in Cybersecurity for 2024.pptx
devvsandy
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
TaghreedAltamimi
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
Remote DBA Services
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
dakas1
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
Quickdice ERP
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
XfilesPro
 

Recently uploaded (20)

E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
 
Top 9 Trends in Cybersecurity for 2024.pptx
Top 9 Trends in Cybersecurity for 2024.pptxTop 9 Trends in Cybersecurity for 2024.pptx
Top 9 Trends in Cybersecurity for 2024.pptx
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...
 

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