Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthaiquang-agilityio/spring-batch-rocketmq
Run spring batch via RocketMQ
https://github.com/nhatthaiquang-agilityio/spring-batch-rocketmq
rocketmq rocketmq-console spring-batch spring-batch-jobs spring-boot
Last synced: 12 days ago
JSON representation
Run spring batch via RocketMQ
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/spring-batch-rocketmq
- Owner: nhatthaiquang-agilityio
- Created: 2018-03-02T09:49:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T02:35:40.000Z (almost 7 years ago)
- Last Synced: 2024-04-16T07:09:42.257Z (9 months ago)
- Topics: rocketmq, rocketmq-console, spring-batch, spring-batch-jobs, spring-boot
- Language: Java
- Size: 3.24 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Running Spring Batch Job via RocketMQ Sample
rocketmq version: 4.0.0-incubating+ rocketmq-namesrv: RocketMQ Name Server
+ rocketmq-broker-a-m: RocketMQ Broker
+ pub-service: Publish & Subscribe Messages
+ rocketmq-console: UI for visualization Pub & Sub
+ batch-service: Spring Batch Job (Batch Job Consumer)The Pub Service publish a message by (http://localhost:9909/pub-message).
After that, the Batch Service receives a message and runs job#### Publish a message
![Publish a message](images/publish-message.png)#### Receive a message and run Job
![Receive a message and run Job](images/receive-message-and-run-job.png)### Usage:
#### Pub Service
```
$ cd pub-service
$ mvn clean package
```#### RocketMQ Console
```
$ cd rocketmq-console
$ mvn clean package
```#### Batch Service
```
$ cd batch-service
$ mvn clean package
```#### docker-compose:
```
docker-compose up
```### Testing Pub Sub Service
#### Publish a mesage and Running Batch Service via RocketMQ
http://localhost:9909/pub-message#### RocketMQ Console
http://localhost:8080#### Checking Batch Job in Console
#### Run Job via API
http://localhost:9709/launchjob####
### Reference
[RockerMQ Docker Sample - Github](https://github.com/jingxizheng/rocketmq-docker-sample)[Spring Batch](https://examples.javacodegeeks.com/enterprise-java/spring/batch/spring-batch-job-parameters-example/)