Spring Batch Technology Snapshot

Cloud-ready, scalable Java platform batch processing solution. Spring Batch is a comprehensive, lightweight batch framework designed to enable the development of robust batch applications vital for the daily operations of enterprise systems. Spring Batch’s layered architecture supports the ease of use for end-user developers and leverages existing Java / Java EE tools and frameworks.

Spring Batch’s layered architecture supports the ease of use for end-user developers, making it simple to leverage advanced enterprise services when necessary. An open source solution, Spring Batch allows advanced customization to your systems, including the inclusion of batch scheduling and Admin Console security features.


  • Provides functionality for processing large volumes of data with prebuilt solutions to read and write from a multitude of data sources.
  • Since the foundation of Spring Batch is based upon the Spring framework, developers receive all of the benefits of Spring, such as dependency injection and bean management based upon simple POJOs.
  • The majority of the technical aspects surrounding the creation of batch applications have been solved, resulting in the developer instead spending more time solving business needs.
  • Leverages existing Java / Java EE tools and frameworks. For example: by leveraging the additional functionality of Spring Integration, you can further increase the scalability of more distributed processes.
  • As an open source solution, Spring Batch allows advanced customization to your systems.


Spring Batch was designed as a three layered architecture that consists of the Batch Application, Batch Core and Batch Infrastructure.  The Batch Application layer contains all of batch jobs and custom code written by a developer that will be implementing job processes using Spring Batch. The Batch Core layer implements all of the necessary runtime classes needed to launch, control and record statistics about batch jobs. The Batch Infrastructure contains the common readers, writers and services used by both application developers creating jobs and the core batch framework itself.

Spring Batch has removed a lot of the hassle related to solving some of the technical issues surrounding enterprise batch processing.

Features Snapshot:

  • Repeat Operations: an abstraction for grouping repeated operations together and moving the iteration logic into the framework
  • Retry Operations: an abstraction for automatic retries
  • Execution contexts at both the Job and Step level for sharing information between components
  • Late binding of environment properties, job parameters and execution context values into a Step when it starts
  • Persistence of Job meta data for management and reporting purposes that record stats for every component of the Job
  • Remote chunking of steps
  • Configurable exception handling strategies allowing fault tolerance and record skipping. Concurrent execution of chunks
  • Partitioning: steps execute concurrently and optionally in separate processes
  • OSGi support for deploying the Spring Batch framework as a set of OSGi services. Deploy individual jobs for groups of jobs as additional bundles that depend on the core
  • Non-sequential models for Job control configuration (branching and decision support of Step flow)

For a high-level overview, please see tutorial Introducing Spring Batch.


As explained on the project’s Spring Source website:

“Spring Batch is designed with extensibility and a diverse group of end users in mind. The figure below shows a sketch of the layered architecture that supports the extensibility and ease of use for end-user developers:

spring batch architecture

Spring Batch provides an Infrastructure layer in the form of low level tools. There is also a simple execution environment, using the infrastructure in its implementation. The execution environment provides robust features for traceability and management of the batch lifecycle. A key goal is that the management of the batch process (locating a job and its input, starting, scheduling, restarting, and finally processing to created results) should be as easy as possible for developers.

The Infrastructure provides the ability to batch operations together, and to retry an piece of work if there is an exception. Both requirements have a transactional flavour, and similar concepts are relevant (propagation, synchronisation). They also both lend themselves to the template programming model common in Spring, c.f. TransactionTemplate, JdbcTemplate, JmsTemplate.

The Core module is the batch-focused domain and implementation. It provides a robust set of integrated features including job processing statistics, job launch and restart to enable the management of the full lifecycle of traditional batch processing.

A number of sample jobs are packaged in a separate Samples module to more clearly articulate the usage and capabilities of the Core module.

The runtime dependencies of infrastructure and core are shown in the figure below:

spring batch architecture2

The current production release version is specified here, and links are also provided to the latest development work.” — http://static.springsource.org/spring-batch/

More Information:

Spring Batch Tutorial Series:

Keyhole Software Spring Batch consulting services are offered as a Time & Materials-based custom engagement; contact your local Keyhole representative for pricing information.