Skip to content

About

A comparison on how to do ETL jobs using Spring Batch and JobRunr

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Batch processing using Spring Batch and JobRunr

This example project shows how to perform ETL jobs using both Spring Batch and JobRunr.

In this example, we follow the example guide from Spring Batch where a csv file is read, transformed and then imported in a table.

Prerequisites

This project requires a running docker installation. Spring Boot, using spring-boot-docker-compose, will automatically launch a postgres docker database.

How to use

Basic example

The 10 million row challenge:

You can also test an import with a file using 10 million rows. To do so:

  • just run the main method from the FakeDataGenerator (it is a bit too big for GitHub)
  • navigate again to http://localhost:8080/ which will show extra links to import the file with 10 million rows
Results:
Macbook M3 Max with 64GB of RAM:
  • importing 10 million rows with Spring Batch: PT4M31.370018S
  • importing 10 million rows with JobRunr: PT3M30.346123S

Code Structure

Note: as ETL jobs are not part of JobRunr (yet), we added some untested boilerplate code in src/main/java/org/jobrunr/jobs/etl. Drop us a note if you think this should be a built-in feature in JobRunr.

About

A comparison on how to do ETL jobs using Spring Batch and JobRunr

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages