Objectives of the training
Master the design and implementation of batch processing in Java with Spring Batch, structuring the process in the form of jobs made up of workflows, steps and reusable components.Targeted audience
Developers and architects.Prerequisite
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.Trainers
Benefits for Participants
- Define and launch a Spring Batch job;
- Orchestrate complex workflows;
- Declare tasklet steps and chunk oriented steps;
- Apply retry strategies.
Course architecture
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.
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.
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.
Step definition
Transactional demarcation.
Access to JobParameters.
Step-oriented chunks and their components: ItemReader,ItemProcessor, ItemWriter.
Tasklet steps.
Error tolerance (skip, retry).
Listeners.
Pedagogical details
Training architecture
Explanation, for each concept, of the problem it claims to solve, Putting a concept into practice immediately after it has been presented, Validation of each step by execution of unit tests, Exercise “fil rouge” to obtain a complete application at the end of the course, End-of-chapter MCQs to ensure knowledge acquisition.
Type of training
Private or personalized training
If you have more than 8 people to sign up for a particular course, it can be delivered as a private session right at your offices. Contact us for more details.
Request a quotePrivate or personalized training
If you have more than 8 people to sign up for a particular course, it can be delivered as a private session right at your offices. Contact us for more details.
Request a quote