Interview questions
Question 225 of 254
FreeWhat is the relationship between a Job, a Step, and a JobRepository in Spring Batch?
Spring Batch
A Job is the top-level entity representing an entire batch process, composed of one or more Steps executed in sequence (or conditionally). Each Step encapsulates one independent phase of processing (e.g., 'import file', 'validate records', 'generate summary report') and does the actual work. The JobRepository is the persistence layer tracking metadata about every JobInstance, JobExecution, and StepExecution — including status, start/end times, and read/write counts — which is exactly what makes restart and monitoring possible.
Intermediate5 min
