This is a demo about remote partitioning with SpringBoot 2 and Spring Batch.
The demo (in the Docker composing) consists of one master and two slave/worker applications. They are communicating over an ActiveMQ server. It is based on a sample by Spring.
Here is an overview of the components in the Docker composing:
This demo is build with Maven 3.x, Java 11 and Docker.
- At first you have to build both applications in order to create the docker images with
mvn package
in the root module - Then you can start the demo Docker composing in the folder /docker/demo/ with
docker-compose up
- You can start the batch job by requesting http://localhost:8080/startjob
- Take a look at the Docker logs how the remote slaves (workers) are processing the job
Stephan Zerhusen
The code is released under the MIT license.