[improve/#143] 크롤링 파이프라인 중 LLM 요약 단계와 임베딩 단계에서 중복 처리되는 문제 해결 #144
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
❤️ 기능 설명
Spring Batch의
AsyncItemProcessor와AsyncItemWriter를 도입하여 RSS 크롤링 Job의 요약 추출 및 임베딩 생성 단계를 비동기 처리로 개선했습니다.주요 변경 사항
1. 비동기 처리 아키텍처 도입
AsyncItemProcessor를 통해 멀티 스레드로 병렬 처리AsyncItemWriter를 통해 처리 완료된 Future 결과 저장2. Step 구조 개선
extractSummaryStep: Post → Future 처리 구조로 변경embedAndIndexStep: Post → Future 처리 구조로 변경3. 의존성 추가
spring-batch-integration추가하여 AsyncItemProcessor/Writer 사용개선 효과
연결된 issue
close #143
✅ 체크리스트
참고 사이트
https://docs.spring.io/spring-batch/reference/5.2/spring-batch-integration/sub-elements.html