Spring Batch 4.2.0.M1 available now

Releases | Mahmoud Ben Hassine | April 24, 2019 | ...

I am pleased to announce that the first milestone of Spring Batch 4.2 has been released and is available from our milestone repository.

The major feature of this release is the addition of batch metrics with Micrometer.

Batch Metrics with Micrometer

This release introduces a new feature that lets you monitor your batch jobs by using Micrometer. By default, Spring Batch collects metrics (such as job duration, step duration, item read and write throughput, and others) and registers them in Micrometer's global metrics registry under the spring.batch prefix. These metrics can be sent to any monitoring system supported by Micrometer.

For more details about this new feature, please refer to the Monitoring and Metrics section of the reference documentation.

Other updates

In addition to Micrometer support, this milestone includes other improvements:

  • The reference documentation has been updated to match the same style as the other Spring projects
  • Dependencies have been updated to the latest milestones of Spring projects:

Spring Framework 5.2.0.M1, Spring Data 2.2.0.M3 and Spring Integration 5.2.0.M1

  • A number of other small improvements and bug fixes

For a complete list of changes, please check the change log.


Spring Batch 4.2.0.M1 can be consumed with Spring Boot 2.2.0.M2. Go ahead and create your next Spring Batch app on start.spring.io! We have also created a new sample to show how to monitor Spring Batch jobs with Micrometer, Prometheus, and Grafana.

We look forward to hearing your feedback on this first milestone! Feel free to ping @michaelminella or @benas on Twitter or to ask your question on StackOverflow or Gitter. If you find any issue, please open a ticket on Jira.

What's next?

The next milestone will ship support for Apache Kafka. We are planning to add a new item reader and writer to read data from and write it to Kafka topics. Stay tuned!

Spring Batch Home | Source on GitHub | Reference Documentation

Get the Spring newsletter

Thank you!

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all