-
Notifications
You must be signed in to change notification settings - Fork 0
[REFACTOR/#94] 카드사 연동 로직 리팩토링 및 CODEF 로깅 시스템 보완 #100
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
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
64a63b3
refactor: 카드사 연동 로직 로깅 추가
seamooll 1e6ada2
refactor: AssetSyncService 외부 API 호출과 DB 저장 로직 분리
seamooll e4f7fd7
feat: Feign Client 타임아웃 설정 추가
seamooll a793ed6
feat: 비동기 작업의 Graceful Shutdown 설정 추가
seamooll 6fdce35
refactor: CODEF 연동 관련 로깅 로직 보완
seamooll bfe6a40
refactor: 불필요한 클래스 삭제
seamooll 1790415
Merge branch 'main' of https://github.com/Valuedi/Valuedi_Backend int…
seamooll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
새로운 트랜잭션을 시작하기 위해
save...메서드들을public으로 만들고@Transactional(propagation = Propagation.REQUIRES_NEW)를 사용한 것은 좋은 접근입니다. 하지만 스프링의 트랜잭션 프록시를 적용하기 위해 메서드를public으로만 만드는 것은 캡슐화를 해칠 수 있습니다. 이 메서드들이 의도치 않게 다른 서비스에서 호출될 수 있기 때문입니다. 장기적인 유지보수성을 위해 다음과 같은 대안을 고려해볼 수 있습니다.save메서드들을 담을 새로운 컴포넌트(예:AssetPersistenceService)를 만듭니다.AssetSyncService는 이 새 컴포넌트를 주입받아 사용합니다. 이것이 가장 깔끔한 접근 방식입니다.AssetSyncService에 자기 자신을 주입하여 프록시 인스턴스를 통해public트랜잭션 메서드를 호출합니다. 이는 흔한 해결 방법이지만 코드가 혼란스러워질 수 있습니다.현재 구현도 동작은 하지만, 더 나은 캡슐화를 위해 리팩토링을 권장합니다.