Skip to content

Commit 2126589

Browse files
author
Taichi Yamakawa
committed
Merge branch 'main' into fix-hangup-caused-by-sequential-execution-id-extractor
2 parents ebee7cb + 3674527 commit 2126589

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, feature/** ]
6+
pull_request:
7+
branches: [ main, feature/** ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up JDK 8
15+
uses: actions/setup-java@v2
16+
with:
17+
distribution: 'zulu'
18+
java-version: '8'
19+
cache: maven
20+
- name: Compile
21+
run: mvn --batch-mode clean test-compile
22+
- name: Test
23+
run: mvn --batch-mode jacoco:prepare-agent test jacoco:report
24+
- name: Publish Test Report
25+
if: ${{ always() }}
26+
uses: mikepenz/action-junit-report@v2
27+
with:
28+
check_name: 'Test Report'
29+
report_paths: '**/surefire-reports/TEST-*.xml'

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
# nablarch-fw-batch-parallelizable
22

3-
## Overview
3+
[![CI](https://github.com/lerna-stack/nablarch-fw-batch-parallelizable/workflows/CI/badge.svg?branch=main)](https://github.com/lerna-stack/nablarch-fw-batch-parallelizable/actions?query=workflow%3ACI+branch%3Amain)
4+
45

56
[nablarch-fw-batch](https://github.com/nablarch/nablarch-fw-batch) でバッチ並列実行を実現するカスタムハンドラを提供します。
67
*nablarch-fw-batch* の利用方法については、[公式ドキュメント](https://nablarch.github.io/docs/LATEST/doc/application_framework/application_framework/batch/index.html) をご確認ください。
78

9+
## Motivation
10+
11+
### 並列化による処理速度改善
12+
13+
処理対象データの増加によるバッチ処理の遅延に対して、処理の並列化は有効な対策の1つです。ベンチマークテストにより、本ライブラリを用いたバッチ処理の多重度を増やすことで処理速度が上がり、vCPUを増やすことでその限界値が上がることが分かっています。
14+
15+
![](img/result_scaleall.png)
16+
17+
- ベンチマークテストの詳細は [「Lernaでバッチ処理を並列化したらリニアに早くなるか検証してみた」](https://fintan.jp/?p=7061) 参照。
18+
19+
20+
### 並列化による順序逆転の防止
21+
22+
単純な並列化では入力データの順序の入れ替わりやデータ更新の衝突が生じ、困るケースがあります。本ライブラリでは任意のキーにより入力データを処理するレーンを振り分けることができ、キーの値が同じデータは逐次的に処理されるため順序の逆転などの問題が起こることはありません。
23+
24+
![](img/data_flow.png)
25+
826
## Supported JDK versions
927

1028
実行環境の Java バージョン は 8 系以上が必要です。

img/data_flow.png

14.1 KB
Loading

img/result_scaleall.png

35.1 KB
Loading

0 commit comments

Comments
 (0)