Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szerhusenbc/spring_batch_demo
https://github.com/szerhusenbc/spring_batch_demo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/szerhusenbc/spring_batch_demo
- Owner: szerhusenBC
- License: mit
- Created: 2019-03-22T11:31:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T15:07:20.000Z (almost 6 years ago)
- Last Synced: 2023-03-06T02:18:21.962Z (almost 2 years ago)
- Language: Java
- Size: 111 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Batch Demo for remote partitioning
## About
This is a demo about [remote partitioning](https://docs.spring.io/spring-batch/4.1.x/reference/html/index-single.html#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](https://github.com/spring-projects/spring-batch/tree/master/spring-batch-samples/src/main/java/org/springframework/batch/sample/remotepartitioning).Here is an overview of the components in the Docker composing:
![Composing overview](docs/overview.png?raw=true "Composing overview")
## Requirements
This demo is build with **Maven 3.x**, **Java 11** and **Docker**.## Usage
1. At first you have to build both applications in order to **create the docker images** with `mvn package` in the root module
2. Then you can start the demo **Docker composing** in the folder **/docker/demo/** with `docker-compose up`
3. You can **start the batch job** by requesting **http://localhost:8080/startjob**
4. Take a look at the **Docker logs** how the remote slaves (workers) are processing the job## Creator
**Stephan Zerhusen**
*
*## Copyright and license
The code is released under the [MIT license](LICENSE?raw=true).