0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

並行処理テスト

Last updated at Posted at 2021-09-03

Reference

https://docs.spring.io/spring-batch/docs/current/reference/html/scalability.html(英語)
https://jojoldu.tistory.com/331 chunck指向処理(韓国語)
https://stackoverflow.com/questions/46452527/difference-between-chunk-size-and-page-size-spring-batch

breakdown options

  • there are two modes of parallel processing:
    • Single process, multi-threaded
    • Multi-process
  • These break down into categories as well, as follows:
    • Multi-threaded Step (single process)
    • Parallel Steps (single process)
    • Remote Chunking of Step (multi process)
    • Partitioning a Step (single or multi process)

ItemReader

image.png

image.png
https://jojoldu.tistory.com/331から/問題あれば削除

Chunk Size는 한번에 처리될 트랜잭션 단위를 얘기하며, Page Size는 한번에 조회할 Item의 양
Chunk Sizeは一度処理されるトランザクション単位で、
Page Sizeは一回照会するItemの量

image.png
https://jojoldu.tistory.com/331から/問題あれば削除

Sample?

JobBuilderFactory
stepBuilderFactory
??Tasklet?

Scheduled cron>

@Bean
public Step ~~Step(){
return stepBuilderFactory
.get("~Step")
.tasklet(~Service)
.build();
};

@Bean
public Job processJob(){
return jobBuilderFactory.get("").
.incrementer(new RunIdIncrementer)
.start(~~Step())
.build();
}
https://jojoldu.tistory.com/331#:~:text=Chunk%20Size%EB%8A%94%20%ED%95%9C%EB%B2%88%EC%97%90%20%EC%B2%98%EB%A6%AC,%EC%9D%98%20%EC%96%91%EC%9D%84%20%EC%96%98%EA%B8%B0%ED%95%A9%EB%8B%88%EB%8B%A4.

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?