File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ flowchart TD
3939 tx1 --> balanceCheck
4040 balanceCheck -- 아니오 --> tx1Failed
4141 balanceCheck -- 예 --> accounts --> transfer --> outbox --> idemComplete --> response
42- tx1 --> tx2
42+ idemComplete --> tx2 --> response
4343 outbox --> publisher --> mq --> consumer --> notify
4444```
4545
@@ -154,14 +154,14 @@ flowchart TD
154154
155155### 4-2. TX2 (Ledger)
156156
157- 1 . 별도 트랜잭션(` REQUIRES_NEW ` ) 시작
157+ 1 . TX1 커밋 이후 별도 트랜잭션(` REQUIRES_NEW ` ) 시작
1581582 . Ledger 기록
159159
160160 - ` (transfer_id, account_id, side) ` UNIQUE
1611613 . TX2 커밋
162162
163163 - 실패 시 예외를 다시 던진다
164- - TX1이 이미 커밋된 상태일 수 있으므로 , 요청은 ` 500 ` 이지만 transfer/outbox/idempotency는 이미 성공 상태일 수 있다
164+ - 호출 시점에 TX1은 이미 커밋된 뒤이므로 , 요청은 ` 500 ` 이지만 transfer/outbox/idempotency는 이미 성공 상태다
165165
166166---
167167
@@ -192,7 +192,7 @@ flowchart TD
192192## 7. outbox publisher
193193
194194- publish 성공 → ` SENT `
195- - 실패 → 상태 유지 + backoff
195+ - 실패 → 상태 유지, 다음 스케줄 주기에 다시 시도
196196- 중복 발행 가능(정상)
197197
198198---
You can’t perform that action at this time.
0 commit comments