Spring Boot 4.1 adds MongoDB support for Spring Batch’s JobRepository, removing the need for a separate SQL database to store batch metadata. The walkthrough builds a complete example storing batch metadata in MongoDB while reading from a CSV file and writing to PostgreSQL, covering infrastructure setup, tasklet and chunk-based step configuration, plus bonus sections on GraalVM native image compilation and lazy datasource connections.