Spring Batch

[Spring Batch] 스프링 배치 란?

오늘도개발 2024. 5. 6. 15:45

 

 

* 참고 사이트 https://docs.spring.io/spring-batch/reference/domain.html

 

The Domain Language of Batch :: Spring Batch

To any experienced batch architect, the overall concepts of batch processing used in Spring Batch should be familiar and comfortable. There are “Jobs” and “Steps” and developer-supplied processing units called ItemReader and ItemWriter. However, be

docs.spring.io

 

 

1. 스프링 배치란?

 

  - 일괄 처리를 위한 오픈 소스 프레임워크

 

  - Spring Batch는 로깅 /추적 기능 지원

 

  - 트랜잭션 관리 지원

 

 

 

2. 스프링 배치 특징

 

  - 대량의 작업에 특화 되어 있음

 

  - Job 실행 방법에는 Tasklet 기반과 Chunk 기반이 있음

 

  - Job을 실행 할 때, Multi - thread 방법과  parallel 방법이 존재

 

  - Step 에는 ItemReader, ItemProcessor, ItemWriter로 존재 ( ItemProcessor 를 생략하는 경우도 많음 )

 

  - JobRepositroy 에 의해서 실행 관련 로그를 확인 할 수 있음 ( 설정한 DB에 저장되어 있음 )

 

  - 작업 실패시 에러 핸들링에 대해서도 기능을 제공함

 

'Spring Batch' 카테고리의 다른 글

[Spring Batch] JobScope, StepScope  (0) 2024.05.07
[Spring Batch] ItemWriter  (0) 2024.05.07
[Spring Batch] ItemProcessor  (0) 2024.05.07
[Spring Batch] ItemReader  (0) 2024.05.07
[Spring Batch] Job 과 Step  (0) 2024.05.06