-
Notifications
You must be signed in to change notification settings - Fork 1
CONFETI-76 feat: Related Artist 데이터 정합성을 위한 배치 작업 구현 #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- getRelatedArtistsById 에 offset 파라미터 추가
- ArtistRelations 를 사용하여 데이터를 전달하도록 구현. confetiRelatedArtist 보다 구조가 효율적이라고 판단함
- 해당 서비스 내부에서 DB의 데이터를 가져오고 정합성을 맞추는 작업을 모두 진행하도록 함 - 배치 작업 특성 상 데이터를 전달할 때 파라미터 타입이 Map<String, Set<String>>, List<ConfetiRelatedArtist>, List<ArtistRelations> 등으로 달라지는 형태가 됐는데, 이를 파사드 단에서 관리하면서 서비스를 호출하는 것보다 newArtistRelations 라는 파라미터를 한번에 전달하는게 더 좋다고 판단함
- 정합성 작업은 싱크가 맞지 않는다고 해서 큰 문제가 발생하진 않으므로 오류 발생 시 로그만 남기고 다음 작업으로 넘어가도록 구현함
- 기존 try-catch에서 예외를 던지도록 변경하고 이를 listener 가 처리하도록 함. 책임 분리와 retry 등을 위함 - feignClient 에서 예외가 발생할 경우 Future 로 감싸서 응답을 주기 때문에 artistId를 알 수 없음 따라서 ArtistIdAwareException 으로 wrapping 하여 문제가 발생한 artist 의 id 를 전달함
- reader를 재사용해야하는 경우가 존재해서 batch 관련 reader, writer, processor를 domain 내부로 옮김
…ch-server into feat/CONFETI-76
ch1hyun
approved these changes
Jan 6, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🔊 Summaries
✨ Notification