일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- JPQL
- 이펙티브자바
- reactive operaton
- jdbc
- 자동처리
- 교육기획팀원
- GitHub Actions
- kusitms
- springboot
- Domain Driven Design
- Spring Batch
- 영속성
- scheduling messages with rabbitmq
- 30기
- cicd
- 큐시즘
- delayed message plugin
- 자바 ORM 표준 JPA 프로그래밍
- 객체지향 쿼리 언어
- ddd
- 한국대학생it경영학회
- 최범균
- 교육기획팀
- rabbitmq-delayed-message-exchange
- JPA
- java
- Spring
- 밋업프로젝트
- 도메인 주도 개발 시작하기
- RESTClient
- Today
- Total
목록Spring Batch (2)
코딩은 마라톤

Chunk 기반의 Step에서 ItemReader, ItemProcessor, ItemWriter가 존재한다.이번 글을 통해 CSV, JDBC, JPA의 데이터를 읽어오는 ItemReader를 소개하고자 한다. CSV File ItemReaderA flat file is any type of file that contains at most two-dimensional (tabular) data. Reading flat files in the Spring Batch framework is facilitated by the class called FlatFileItemReader, which provides basic functionality for reading and parsing flat files. ..

스프링 배치 기본 구조 Job Launcher 가 Job을 실행하고 Job이 Step을 실행한다. Job Repository : db 또는 메모리에 스프링 배치가 실행할 수 있도록 메타 데이터를 관리하는 클래스 Job : 배치의 실행 단위 N개의 Step을 실행할 수 있고, 흐름(Flow)을 관리할 수 있다. Step : Job의 세부 실행 단위, N개가 등록돼 실행된다. Step의 실행 단위는 크게 2가지다. Chunk 기반 : 하나의 큰 덩어리를 n개씩 나눠서 실행 Task 기반 : 하나의 작업 기반으로 실행 Chunk 기반 Step은 ItemReader, ItemProcessor, ItemWriter가 있다. ItemReader : 배치 처리 대상 객체(Item) 를 읽어 ItemProcessor,..