Spring batch processing and programming model

Source: Internet
Author: User

1. Batch processing:

Similar to the batch commit in SQL

2. Scene:

Business timed batch operations, but what about the batch programming model?

3. Open Source Framework

Spring Batch

4. Programming Model:

Reader-processor-writer

Joblauncher-job-jobexecution-Jobparametersvalidator

Jobexecution result = Launcher.run (Job, New Jobparameters ()); Runjob mechanism

5. Strategy

A. Batch commit, configure transaction commit-interval= "1000"

B. Failure policy Skip-policy Skip-limit skippable-exception-classes (we usually just log in the project, then manually process or retry)

C. Retry policy retry-limit retry-policy

D. Monitoring strategy Listeners

E. Workflow:

F.map-reduce:spliter/parallel, Flow (There are also map-reduce ideas here, both in BPM and in the ESB), which are incorporated into the thread pool

6. Integration with the ESB

Support for cluster deployment, but personally feel that the built-in flow is a bit awkward, because this design to the database built-in table structure, preferably using BPM to replace the better

Looking at these concepts, take a look at the picture and see

System integration can be done with mq,rdbms,flatfile,socket access.

Spring batch processing and programming model

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.