GithubHelp home page GithubHelp logo

spring-batch-in-action's Introduction

spring-batch-in-action

Spring Batch In Action이 2011년 이후 개정판이 나오지도 않고, 한글 번역판도 없고, 국내 Spring Batch 글 대부분이 튜토리얼이거나 공식문서 번역본이라 답답해서 시작
커머스나 기타 서비스 시스템이 커질수록 배치 작업이 늘어나는데, 주먹구구식으로 Spring Batch 사용하는 경우가 많음
Spring MVC는 자료가 정말 많지만 Batch는 너무 없어서 정리도 할겸 시작.

목차

예정

  • Simple Batch Job
    • 잡실행 결과 리뷰
    • Job, JobInstance, JobExecution 등등 BATCH_JOB 스키마
      • BatchExecution 테이블 내용물 리뷰
    • BatchStatus 소개
  • Batch Job Flow
    • Step
    • Flow
    • split & mutli Thread
    • decide
      • JobExecutionDecider를 통한 Step 분기처리
  • Batch Step 소개
    • chunk 지향
    • chunk 지향을 코드로
    • reader processor writer 간략 소개
  • JobParameter
    • @JobScope, @StepScope, @Value
    • Build => batch.jar 를 실행 => console에 출력되는 파라미터 확인
    • Job Parameter 중복으로 오류나는것도 확인
    • 테스트 코드로 build 없이 수행하는것 확인
    • StepScope
    • JobScope
  • Reader
    • custom reader 생성시 read() 메소드 오버라이딩 주의 사항
      • this.data.hasNext() 가 false일 경우 무조건 null 반환하도록
      • null이 반환안되면 무한 읽기 시작됨
    • DB & JPA
      • JpaItemReader
      • JpaPagingItemReader
      • IbatisReader는 Spring Batch 4.0에 오면서 삭제됨
      • 같은 테이블을 조회 & 수정해야 한다면? (참고)
    • File
      • FlatFileItemReader
    • 절대 JpaRepository로 repository 커스텀하게 쓰지말것
    • Read Multiple DataSources
    • Item Stream Interface
      • ItemStream?
      • 페이징과의 차이점
      • JpaCursorItemReader
    • QuerydslPagingItemReader & QuerydslCursorItemReader
  • Writer
    • Simple Writer 소개
      • chunk 차이
      • chunk와 page size 다를때 주의사항 소개
    • DB & JPA
      • JDBC writer
      • JPA Writer
    • Write Multiple DataSources
  • Processor
    • Simple Processor
    • Processor에서 Filter 처리
    • Processor에서 Validate
      • Validator
      • Validator.setFilter(true) 로 실패시 건너가기
    • Composite
      • 여러개의 Processor를 조합하고싶을때
      • CompositeItemProcessor
      • List<ItemProcessor<Pay,Pay>> delegates
    • Processor는 Java8의 Stream 과 유사한 개념으로 보면 좋음
  • Transactions
  • Error
    • Restart
      • restartable=false?
    • Retry
    • Skip
    • Listeners
  • runid
  • 테스트 코드
  • Multi DataSource
    • Multi Datasource
    • Multi EntityManager
    • Multi TxManaer
  • Batch 스케줄링은 어떻게? (젠킨스)

spring-batch-in-action's People

Contributors

jojoldu avatar triconvex avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.