TI271
Information technology

Spring Batch: designing and automating robust batch processes

Control complex workflows and make your business processes more reliable with Spring Boot

Batch processing remains essential in many IT architectures: data import/export, document generation, recurring calculations or intensive business processing. Spring Batch provides a powerful, proven framework for structuring, scheduling, restarting and ensuring the reliability of such processes in modern environments.
In this course, you'll learn how to organize workflows in the form of jobs, break down steps into tasklets or chunk-oriented processes, pass on parameters and manage recovery strategies (retry, skip, listeners). You'll also see how to make your jobs interact with the Spring Boot environment: transaction management, launching via command line or tests, automatic configuration...
Each concept is immediately put into practice in a “red thread” project in which you will build all the building blocks, step by step. At the end of the day, you'll have a solid technical foundation for integrating high-performance, testable batch processes tailored to your business processes.

Is it for you ?

Developers and architects.

Prerequisites

This course requires a sound knowledge of the basics of Java programming (principles of object-oriented programming, generic types, annotations, lambda expressions), Spring and Spring boot and experience of working with Eclipse or IntelliJ.

What You'll Walk Away With

  • Design structured batch jobs with sequential, conditional, and parallel workflows
  • Implement efficient steps (chunk and tasklet) with transaction management and parameter handling
  • Handle errors and improve resilience using retry, skip strategies, and listeners
  • Run and schedule jobs via command line, Spring scheduling, and automated tests
  • Structure a Spring Boot project with Spring Batch and job repository integration

Training content

1 Introduction

  • Overview of concepts and use cases.
  • The job tracking database used by Spring Batch.
  • The role of beans automatically created by Spring Boot (JobLauncher, JobRepository...).

Practical application: creation of a Spring Boot project to develop a Spring Batch job, creation of the job tracking database.

2 Job definition

  • A Job as a set of flows and steps.
  • Sequential workflows.
  • Conditional workflows.
  • Parallel workflows.
  • Possible Job statuses.
  • JobScope and StepScope scopes.
  • Best practices for organizing code.

Putting it into practice: creating a simple Job.

3 Starting a job

  • Transmission of parameters (JobParameters).
  • Launching from the command line.
  • Launch from a Spring schedule.
  • Launch from a test with spring-batch-test

Putting it into practice: executing the Job defined above from the main method and from a test.

4 Step definition

  • Transactional demarcation.
  • Access to JobParameters.
  • Step-oriented chunks and their components: ItemReader,ItemProcessor, ItemWriter.
  • Tasklet steps.
  • Error tolerance (skip, retry).
  • Listeners.

Practical application: add chunk oriented steps and tasklet steps to the Job created previously, apply a retry strategy and declare listeners.

See more

📌 Practical information

Our training sessions are offered in Montreal or Quebec City, in person or in a virtual classroom. Dates and locations are specified when you select your session below. If you have any questions, check out our FAQ.

Duration
1 day
Schedule
See training dates for details
Regular fee
$625
Preferential fee A preferential rate is offered to public institutions, to members of certain professional organizations as well as to companies that do a certain amount of business with Technologia. To know more, please read the "Registration and rates" section on our FAQ page. Please note that preferential rates are not available for online training courses. Discounts cannot be combined with other offers.
$560
Private or personalized training

Do you have several employees interested in the same training course? Whether in person at your offices or remotely in virtual mode, we offer private training courses tailored to your team's needs. Group rates are available. Contact us for more details or request a quote online.

Request a quote

Request in-company training

Do you have several employees interested in the same training course? Whether in person at your offices or remotely in virtual mode, we offer private training courses tailored to your team's needs. Group rates are available. Contact us for more details or request a quote online.

Tell us more
Added to cart View my cart