[w06][chanhyeok] 본인 도메인 송금 — Stage1~3 (한계 재현 → AFTER_COMMIT 해결)#38
Open
ochanhyeok wants to merge 3 commits into
Open
[w06][chanhyeok] 본인 도메인 송금 — Stage1~3 (한계 재현 → AFTER_COMMIT 해결)#38ochanhyeok wants to merge 3 commits into
ochanhyeok wants to merge 3 commits into
Conversation
@distributedlock 의 SpEL 에서 root object property 가 아니라 메서드 인자 variable 참조로 명시 (#fromId). 6 주차 학습 중 본인 도메인 첫 실행 시 발견. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5주차 분산락 도메인 표 옆 4주차 칸 빈 자리 채움. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 주차 chanhyeok 의 P2P 송금 + 분산락 AOP 도메인 연장. - Stage1Hello — @transactional + publishEvent + 동기 @eventlistener 가장 작은 단위 - Stage2BeforeCommitTrap — 정상 + 실패 → 5 주차 한계 재현 (DB rollback 됐지만 [AUDIT] [NOTIFY] 이미 호출됨) - Stage3AfterCommit — @TransactionalEventListener(AFTER_COMMIT) rollback 시 listener 자동 스킵 → 외부 호출 안전성 확보 학습 본질 = 5 주차 advice 안-밖 한계 → 6 주차 시간축 4 phase 로 해결. 확장 예정 (다음 학습) - Stage4 AllPhases (BEFORE_COMMIT / AFTER_ROLLBACK / AFTER_COMPLETION 추가) - Stage5 @async (listener 별 스레드 + 격리) - Stage6 AOP + Event 함께 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
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.
이번 주차
진행 상황
환경
시도한 거 (시간순)
측정 결과
Stage 별 listener 호출 동작
balance / fee 정합성 (세 Stage 모두 동일)
통증 / 막힌 곳
해결 후 인사이트
회고
5 주차에서 advice 안-밖 구조로 못 다뤘던 시간축을 6 주차 phase 로 정확히 풀어내는 흐름이 가장 큰 깨달음. 본인 도메인 (송금) 에서 Stage2 → Stage3 어노테이션 한 줄 변경으로 실패 케이스 외부 호출 안전성이 확보되는 걸 직접 확인.
5 주차 SpEL 버그가 본인 도메인 첫 실행에서 발견된 게 의외 — 5 주차 본인 학습 때 본인 도메인 stage 실제 실행 안 했거나 다른 인자 패턴이라 안 걸렸을 듯. 학습 PR 이 단순 코드 머지가 아니라 실제 실행 검증을 동반해야 함을 다시 확인.
내일 = 운영자 STAGE 3 (@async + ThreadPoolTaskExecutor) + 본인 Stage4 ~ 6 (AllPhases / @async / AOP + Event 함께).
🤖 Generated with Claude Code