Coder Social home page Coder Social logo

erenavsarogullari / otv_springbatch_taskletstep Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 9.0 190 KB

This project shows how to develop TaskletStep Oriented Processing Model in Spring Batch. Used Technologies : JDK 1.7.0_09, Spring 3.1.3, Spring Batch 2.1.9 and Maven 3.0.4

Home Page: www.onlinetechvision.com

Java 100.00%

otv_springbatch_taskletstep's Introduction

TaskletStep Oriented Processing in Spring Batch

Many enterprise applications require batch processing to process billions of transactions every day. These big transaction sets have to be processed without performance problems. Spring Batch is a lightweight and robust batch framework to process these big data sets.

Spring Batch offers 'TaskletStep Oriented' and 'Chunk Oriented' processing style. In this article, TaskletStep Oriented Processing Model is explained.

Let us investigate fundamental Spring Batch components :

Job : An entity that encapsulates an entire batch process. Step and Tasklets are defined under a Job

Step : A domain object that encapsulates an independent, sequential phase of a batch job.

JobInstance : Batch domain object representing a uniquely identifiable job run - it's identity is given by the pair Job and JobParameters.

JobParameters : Value object representing runtime parameters to a batch job.

JobExecution : A JobExecution refers to the technical concept of a single attempt to run a Job. An execution may end in failure or success, but the JobInstance corresponding to a given execution will not be considered complete unless the execution completes successfully.

JobRepository : An interface which responsible for persistence of batch meta-data entities. In the following sample, an in-memory repository is used via MapJobRepositoryFactoryBean.

JobLauncher : An interface exposing run method, which launches and controls the defined jobs.

TaskLet : An interface exposing execute method, which will be a called repeatedly until it either returns RepeatStatus.FINISHED or throws an exception to signal a failure. It is used when both readers and writers are not required as the following sample.

Used Technologies : JDK 1.7.0_09, Spring 3.1.3, Spring Batch 2.1.9 and Maven 3.0.4

otv_springbatch_taskletstep's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.